Commit 8a891f2a authored by Jacob Thornton's avatar Jacob Thornton
Browse files

act on all twipsy instances

parent bc65b585
Showing with 4 additions and 3 deletions
+4 -3
...@@ -190,9 +190,10 @@ ...@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment