1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-25 06:39:53 +00:00

clean up var defintion

This commit is contained in:
Jacob Thornton 2011-11-16 00:30:11 -08:00
parent 90f8eb6c14
commit 978dfb9216

View File

@ -94,9 +94,11 @@
return this.each(function () { return this.each(function () {
var $this = $(this) var $this = $(this)
, data
if ( typeof options == 'string' ) { if ( typeof options == 'string' ) {
var data = $this.data('alert')
data = $this.data('alert')
if (typeof data == 'object') { if (typeof data == 'object') {
return data[options].call( $this ) return data[options].call( $this )