Permalink
Browse files

clean up var defintion

  • Loading branch information...
1 parent 90f8eb6 commit 978dfb9216b088d92bb8db14b6ddb409cc7c7f76 @fat fat committed Nov 16, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/bootstrap-alerts.js
View
@@ -94,9 +94,11 @@
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 )

0 comments on commit 978dfb9

Please sign in to comment.