Hi all,
In the docs, it says that Array.indexOf uses equivalence (==), not
strict equality (===).
(http://www.prototypejs.org/api/array/indexof)
But the code uses strict equality. From 1.6.0.2:
if (!Array.prototype.indexOf) Array.prototype.indexOf = function(item,
i) {
i || (i = 0);
var length = this.length;
if (i < 0) i = length + i;
for (; i < length; i++)
if (this[i] === item) return i;
return -1;
};
So I'll file a ticket, my only question is whether I should file it
against the code or the docs. ;-)
--
T.J. Crowder
tj / crowder software / com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---