From: Jacob Thornton Date: Mon, 21 Nov 2011 05:06:32 +0000 (-0800) Subject: act on all twipsy instances X-Git-Tag: v2.0.0~6^2~415^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a891f2a7b9720845932c0be8853fc25c6e49eed;p=thirdparty%2Fbootstrap.git act on all twipsy instances --- diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index 19e43a7234..3cb9841c52 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)