diff options
| author | Jacob Thornton <[email protected]> | 2011-11-20 21:06:32 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-11-20 21:06:32 -0800 |
| commit | 8a891f2a7b9720845932c0be8853fc25c6e49eed (patch) | |
| tree | 8d9eb088529c7f370b0c347baf60fdce7fa828d8 | |
| parent | bc65b58551575c9dfb2e4d9f4f7af97009e39432 (diff) | |
| download | bootstrap-8a891f2a7b9720845932c0be8853fc25c6e49eed.tar.xz bootstrap-8a891f2a7b9720845932c0be8853fc25c6e49eed.zip | |
act on all twipsy instances
| -rw-r--r-- | js/bootstrap-twipsy.js | 7 |
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) |
