3 ms·
> a JavaScript program nontrivial if: > ... > - calling methods with the square bracket notation -something[key](x); +var f = something[key]; +f.call
by guest1206 12y ago
> a JavaScript program nontrivial if:
> ...
> - calling methods with the square bracket notation
-something[key](x);
+var f = something[key];
+f.call(something, x);
phew, that really make my program more trivial