ECMA 5 introduced Function.prototype.bind() which is similar to the PrototypeJS version that binds the context to the function. In a class scope you can bind the "this" variable in the function scope to the "this" of the class.
Here is a performance test between those 2 http://jsperf.com/native-function-bind-versus-prototype-js Higher numbers are better as that is the number of operations per second and the native bind() method is higher? Anyone have any insight? Thanks all! -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
