Closed fschaefer closed 13 years ago
i dont see a special reason for using only the first element, at one point during development there may have been a reason, but not now.
Agreed. On Apr 12, 2011 3:22 AM, "fschaefer" < reply@reply.github.com> wrote:
The jQuery plugin shouldn't be limited to the first element in the element collection
this[0]
. Instead the selector should limit the targeted elements.$.fn.weld = function (data, config) { return this.each (function () { weld(this, data, config); }); };
Reply to this email directly or view it on GitHub: https://github.com/hij1nx/weld/issues/18
i updated the readme FYI
The jQuery plugin shouldn't be limited to the first element in the element collection
this[0]
. Instead the selector should limit the targeted elements.