aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-11-16 00:30:11 -0800
committerJacob Thornton <[email protected]>2011-11-16 00:30:11 -0800
commit978dfb9216b088d92bb8db14b6ddb409cc7c7f76 (patch)
tree02c55d19af554c9cfaaa886713f456f25768852e
parent90f8eb6c144bbd409f196a0b33ec4ae2b47e1eb5 (diff)
downloadbootstrap-978dfb9216b088d92bb8db14b6ddb409cc7c7f76.tar.xz
bootstrap-978dfb9216b088d92bb8db14b6ddb409cc7c7f76.zip
clean up var defintion
-rw-r--r--js/bootstrap-alerts.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js
index 7c4b919f7..3ef1672bc 100644
--- a/js/bootstrap-alerts.js
+++ b/js/bootstrap-alerts.js
@@ -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 )