This project is archived and is in readonly mode.

$each is broken for Array with 0 length
Reported by Thomas Aylott | May 28th, 2008 @ 09:59 AM | in 2.0 (closed)
Originally posted on Trac by digitarald
Description
if (iterable.length) Array.prototype.forEach.call(iterable, fn, bind);
else for (var name in iterable) fn.call(bind, iterable[name], name);
When !length fn fn iterates with the prototype.
No fix provided, you should know it better.
Trac Attachments
Trac Comments
Changed 1 year ago by kamicane
Changed 1 year ago by kamicane
owner
set to kamicane
status
changed from new to assigned
owner
set to kamicane
status
changed from new to assigned
Changed 1 year ago by kamicane
(In [292]) - renamed postBody in data, in Ajax.js. Now works also with method=get.
fixed #101
added $native.implement, to make sure we dont overwrite stuff for native Objects (window/document)
added support for xml mimetype in XPATH (thanks digitarald)
removed the loop in name change, Element.js, for explorer. Still to test.
Changed 1 year ago by kamicane
status
changed from assigned to closed
resolution
set to fixed
(In [292]) - renamed postBody in data, in Ajax.js. Now works also with method=get.
fixed #101
added $native.implement, to make sure we dont overwrite stuff for native Objects (window/document)
added support for xml mimetype in XPATH (thanks digitarald)
removed the loop in name change, Element.js, for explorer. Still to test.
status
changed from assigned to closed
resolution
set to fixed
Changed 1 year ago by kamicane
Milestone Mootools version 1.01 deleted
Changed 1 year ago by kamicane
milestone
changed from Mootools version 1.01 to Mootools version 1.1
Milestone Mootools version 1.01 deleted
milestone
changed from Mootools version 1.01 to Mootools version 1.1
No comments found
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »