diff --git a/demos/blockfactory/workspacefactory/wfactory_generator.js b/demos/blockfactory/workspacefactory/wfactory_generator.js index 732db7c2e39..02a1fa43e61 100644 --- a/demos/blockfactory/workspacefactory/wfactory_generator.js +++ b/demos/blockfactory/workspacefactory/wfactory_generator.js @@ -25,7 +25,7 @@ WorkspaceFactoryGenerator = function(model) { var hiddenBlocks = document.createElement('div'); // Generate a globally unique ID for the hidden div element to avoid // collisions. - var hiddenBlocksId = Blockly.utils.genUid(); + var hiddenBlocksId = Blockly.utils.idGenerator.genUid(); hiddenBlocks.id = hiddenBlocksId; hiddenBlocks.style.display = 'none'; document.body.appendChild(hiddenBlocks); diff --git a/demos/blockfactory/workspacefactory/wfactory_model.js b/demos/blockfactory/workspacefactory/wfactory_model.js index 7fa8cc3328c..4b871ccf6f1 100644 --- a/demos/blockfactory/workspacefactory/wfactory_model.js +++ b/demos/blockfactory/workspacefactory/wfactory_model.js @@ -477,7 +477,7 @@ ListElement = function(type, opt_name) { // Name of category. Can be changed by user. Null if separator. this.name = opt_name ? opt_name : null; // Unique ID of element. Does not change. - this.id = Blockly.utils.genUid(); + this.id = Blockly.utils.idGenerator.genUid(); // Colour of category. Default is no colour. Null if separator. this.colour = null; // Stores a custom tag, if necessary. Null if no custom tag or separator. @@ -538,7 +538,7 @@ ListElement.prototype.changeColour = function(colour) { ListElement.prototype.copy = function() { copy = new ListElement(this.type); // Generate a unique ID for the element. - copy.id = Blockly.utils.genUid(); + copy.id = Blockly.utils.idGenerator.genUid(); // Copy all attributes except ID. copy.name = this.name; copy.xml = this.xml; diff --git a/tests/mocha/test_helpers/setup_teardown.js b/tests/mocha/test_helpers/setup_teardown.js index 8d318af4df9..669c6564b38 100644 --- a/tests/mocha/test_helpers/setup_teardown.js +++ b/tests/mocha/test_helpers/setup_teardown.js @@ -179,7 +179,7 @@ export function sharedTestTeardown() { } /** - * Creates stub for Blockly.utils.genUid that returns the provided id or ids. + * Creates stub for Blockly.utils.idGenerator.genUid that returns the provided id or ids. * Recommended to also assert that the stub is called the expected number of * times. * @param {string|!Array} returnIds The return values to use for the