> So jquery provides 'map' as a prototype function for all arrays,
> correct? Quite neat.
That's not JQuery... that's a TW core prototype function:
Array.prototype.map = function(fn,thisObj)
{
var scope = thisObj || window;
var a = [];
for(var i=0, j=this.length; i < j; ++i) {
a.push(fn.call(scope,this[i],i,this));
}
return a;
};}
-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---