0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

act on all twipsy instances

This commit is contained in:
Jacob Thornton 2011-11-20 21:06:32 -08:00
parent bc65b58551
commit 8a891f2a7b

View File

@ -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)