Commit 978dfb92 authored by Jacob Thornton's avatar Jacob Thornton

clean up var defintion

parent 90f8eb6c
...@@ -94,9 +94,11 @@ ...@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment