Skip to content

Commit

Permalink
clean up var defintion
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Nov 16, 2011
1 parent 90f8eb6 commit 978dfb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/bootstrap-alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 978dfb9

Please sign in to comment.