Use goog.global instead of this or window.

This commit is contained in:
Neil Fraser
2014-12-23 16:44:00 -08:00
parent 0f8d01209c
commit 4973db4df6
12 changed files with 90 additions and 83 deletions

View File

@@ -288,11 +288,11 @@ Blockly.WorkspaceSvg.prototype.fireChangeEvent = function() {
return;
}
if (this.fireChangeEventPid_) {
window.clearTimeout(this.fireChangeEventPid_);
clearTimeout(this.fireChangeEventPid_);
}
var canvas = this.svgBlockCanvas_;
if (canvas) {
this.fireChangeEventPid_ = window.setTimeout(function() {
this.fireChangeEventPid_ = setTimeout(function() {
Blockly.fireUiEvent(canvas, 'blocklyWorkspaceChange');
}, 0);
}