Blockly.utils.userAgent moved to Blockly.userAgent

This commit is contained in:
Neil Fraser
2019-05-10 16:56:26 -07:00
parent 25ddecab50
commit 28ad3a9bd3
19 changed files with 138 additions and 91 deletions

View File

@@ -27,6 +27,7 @@
goog.provide('Blockly.Grid');
goog.require('Blockly.userAgent');
goog.require('Blockly.utils');
@@ -185,7 +186,7 @@ Blockly.Grid.prototype.moveTo = function(x, y) {
this.gridPattern_.setAttribute('x', x);
this.gridPattern_.setAttribute('y', y);
if (Blockly.utils.userAgent.IE || Blockly.utils.userAgent.EDGE) {
if (Blockly.userAgent.IE || Blockly.userAgent.EDGE) {
// IE/Edge doesn't notice that the x/y offsets have changed.
// Force an update.
this.update(this.scale_);