-3
rated 0 times
[
2]
[
5]
/ answers: 1 / hits: 41574
/ 13 Years ago, wed, january 18, 2012, 12:00:00
I'm creating a lambda function that executes a second function with a concrete params. This code works in Firefox but not in Chrome, its inspector shows a weird error, Uncaught TypeError: Illegal invocation
. What's wrong with my code?
var make = function(callback,params){
callback(params);
}
make(console.log,'it will be accepted!');
More From » lambda