It is worth mentioning that I'm a "halfway decent" Javascript programmer but the thought of really learning Javascript WELL like some of the ingenious stuff I've seen guys write seems daunting. I am just a non OOP php programmer and JS seems like a whole new world.
there is a block of code I found in this script: fisheye navigation
[].indexOf||(Array.prototype.indexOf=function(v,n){
n=(n==null)?0:n;var m=this.length;
for(var i=n;i<m;i++)if(this[i]==v)return i;
return-1;
});
and honestly I don't even see it assigning a value to a variable! It seems the writer is sniffing for the indexOf method but that doesn't make sense..
I figure that if I dissect this code section by section (which looks to be really well-written) I will be on my way to undertanding the deeper javascript concepts. Thanks!