Speedup Firefox with black magic. Seriously, WTF?

This commit is contained in:
Neil Fraser
2015-01-27 17:14:44 -08:00
parent e7444120ca
commit f79b42ab70
2 changed files with 3 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ Blockly.hasClass_ = function(element, className) {
*/
Blockly.bindEvent_ = function(node, name, thisObject, func) {
var wrapFunc = function(e) {
func.apply(thisObject, arguments);
func.call(thisObject, e);
};
node.addEventListener(name, wrapFunc, false);
var bindData = [[node, name, wrapFunc]];