]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
clean up var defintion
authorJacob Thornton <jacobthornton@gmail.com>
Wed, 16 Nov 2011 08:30:11 +0000 (00:30 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Wed, 16 Nov 2011 08:30:11 +0000 (00:30 -0800)
js/bootstrap-alerts.js

index 7c4b919f700a56009d79a353f33ba9900bc2f851..3ef1672bc0ca52068e087c3b6dc55b7fd033d089 100644 (file)
 
     return this.each(function () {
       var $this = $(this)
+        , data
 
       if ( typeof options == 'string' ) {
-        var data = $this.data('alert')
+
+        data = $this.data('alert')
 
         if (typeof data == 'object') {
           return data[options].call( $this )