diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js index 7c4b919f70..3ef1672bc0 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 )