From 978dfb9216b088d92bb8db14b6ddb409cc7c7f76 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Wed, 16 Nov 2011 00:30:11 -0800 Subject: [PATCH] clean up var defintion --- js/bootstrap-alerts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js index 7c4b919f700a..3ef1672bc0ca 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 )