diff --git a/lib/jquery.stepy.js b/lib/jquery.stepy.js index 8487a7d..61613b7 100755 --- a/lib/jquery.stepy.js +++ b/lib/jquery.stepy.js @@ -382,7 +382,14 @@ $.fn.stepy = function(method) { if (methods[method]) { - return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); + var args = Array.prototype.slice.call(arguments, 1); + var ret = []; + + this.each(function() { + return methods[method].apply(this, args); + }); + + return ret; } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else {