]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
act on all twipsy instances
authorJacob Thornton <jacobthornton@gmail.com>
Mon, 21 Nov 2011 05:06:32 +0000 (21:06 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Mon, 21 Nov 2011 05:06:32 +0000 (21:06 -0800)
js/bootstrap-twipsy.js

index 19e43a723490d210b3ff452b843ee09fce08499e..3cb9841c52e3c89041307f521c4f48077835445e 100644 (file)
       , 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)