act on all twipsy instances
This commit is contained in:
parent
bc65b58551
commit
8a891f2a7b
1 changed files with 4 additions and 3 deletions
7
js/bootstrap-twipsy.js
vendored
7
js/bootstrap-twipsy.js
vendored
|
|
@ -190,9 +190,10 @@
|
|||
, eventOut
|
||||
|
||||
if (typeof options == 'string') {
|
||||
twipsy = this.data(name)
|
||||
if (twipsy) twipsy[options]()
|
||||
return this
|
||||
return this.each(function (){
|
||||
twipsy = $.data(this, name)
|
||||
if (twipsy) twipsy[options]()
|
||||
})
|
||||
}
|
||||
|
||||
options = $.extend({}, $.fn[name].defaults, options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue