3 ms·
If this only works on jQuery objects, why not implement this as jQuery plugin? jQuery.fn.infinity = function (options) {...}; $(el).infinity(options); And
by tantalor 14y ago
If this only works on jQuery objects, why not implement this as jQuery plugin?
jQuery.fn.infinity = function (options) {...};
$(el).infinity(options);
And so on.
- lucian1900 14y agoI think it might work with other methods of selecting DOM elements. At least that's what the API suggests.
- tantalor 14y agoMaybe I'm not reading it right, but it says it depends on jQuery and accepts selectors or jQuery objects, not DOM elements.