Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

javascript idea

Name: Anonymous 2011-12-18 16:36

an object with "call"/"apply" properties should be "callable"

eg,



anus = {
        "call": function(){ ... }
       }


anus() // same as anus.call(anus)

Name: Anonymous 2011-12-19 1:34

>>3

now it is impossible to change the anus() function without wiping out all the properties on it... you would have to make a new function object and copy over all the properties from the old anus and that would probably mess up the prototype.

in the first example, one can just change the call property to change the function

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List