mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-22 15:30:23 +00:00
clean up var defintion
This commit is contained in:
parent
90f8eb6c14
commit
978dfb9216
1 changed files with 3 additions and 1 deletions
4
js/bootstrap-alerts.js
vendored
4
js/bootstrap-alerts.js
vendored
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in a new issue