aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 )