aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-11-20 21:06:32 -0800
committerJacob Thornton <[email protected]>2011-11-20 21:06:32 -0800
commit8a891f2a7b9720845932c0be8853fc25c6e49eed (patch)
tree8d9eb088529c7f370b0c347baf60fdce7fa828d8
parentbc65b58551575c9dfb2e4d9f4f7af97009e39432 (diff)
downloadbootstrap-8a891f2a7b9720845932c0be8853fc25c6e49eed.tar.xz
bootstrap-8a891f2a7b9720845932c0be8853fc25c6e49eed.zip
act on all twipsy instances
-rw-r--r--js/bootstrap-twipsy.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js
index 19e43a723..3cb9841c5 100644
--- a/js/bootstrap-twipsy.js
+++ b/js/bootstrap-twipsy.js
@@ -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)