mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-20 04:11:39 +02:00
act on all twipsy instances
This commit is contained in:
7
js/bootstrap-twipsy.js
vendored
7
js/bootstrap-twipsy.js
vendored
@@ -190,9 +190,10 @@
|
|||||||
, eventOut
|
, eventOut
|
||||||
|
|
||||||
if (typeof options == 'string') {
|
if (typeof options == 'string') {
|
||||||
twipsy = this.data(name)
|
return this.each(function (){
|
||||||
if (twipsy) twipsy[options]()
|
twipsy = $.data(this, name)
|
||||||
return this
|
if (twipsy) twipsy[options]()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
options = $.extend({}, $.fn[name].defaults, options)
|
options = $.extend({}, $.fn[name].defaults, options)
|
||||||
|
Reference in New Issue
Block a user