33 ms·
Due to javascript's funky notion of object methods. If you just pass the function reference itself invoking it will execute it with a |this| set to undefined.
by Xichom2k 8y ago
Due to javascript's funky notion of object methods. If you just pass the function reference itself invoking it will execute it with a |this| set to undefined.
Put differently, a property access x = foo.bar followed by x() is not the same as foo.bar()