mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Remove all calls to goog.dom.createDom
All XML node cereations are now centralized.
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user