Remove all calls to goog.dom.createDom

All XML node cereations are now centralized.
This commit is contained in:
Neil Fraser
2018-10-09 18:45:03 -07:00
committed by Neil Fraser
parent 9252c947bc
commit e62bb1af73
8 changed files with 70 additions and 44 deletions

View File

@@ -35,7 +35,6 @@ goog.require('Blockly.constants');
goog.require('Blockly.VariableModel');
goog.require('Blockly.Workspace');
goog.require('goog.dom');
goog.require('goog.string');
@@ -149,7 +148,7 @@ Blockly.Variables.allDeveloperVariables = function(workspace) {
*/
Blockly.Variables.flyoutCategory = function(workspace) {
var xmlList = [];
var button = goog.dom.createDom('button');
var button = document.createElement('button');
button.setAttribute('text', '%{BKY_NEW_VARIABLE}');
button.setAttribute('callbackKey', 'CREATE_VARIABLE');