mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Speedup Firefox with black magic. Seriously, WTF?
This commit is contained in:
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user