Fixed Xml goog.require's. Changed Blockly.Events.Ui functions to Blockly.Events.FinishedLoading.

This commit is contained in:
Beka Westberg
2019-01-25 17:08:30 -08:00
parent 22f11b937e
commit b4e643f22e
2 changed files with 3 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ Blockly.Events.FinishedLoading.prototype.type = Blockly.Events.FINISHED_LOADING;
* Encode the event as JSON.
* @return {!Object} JSON representation.
*/
Blockly.Events.Ui.prototype.toJson = function() {
Blockly.Events.FinishedLoading.prototype.toJson = function() {
var json = {
'type': this.type,
};
@@ -85,7 +85,7 @@ Blockly.Events.Ui.prototype.toJson = function() {
* Decode the JSON event.
* @param {!Object} json JSON representation.
*/
Blockly.Events.Ui.prototype.fromJson = function(json) {
Blockly.Events.FinishedLoading.prototype.fromJson = function(json) {
this.workspaceId = json['workspaceId'];
this.group = json['group'];
};

View File

@@ -33,6 +33,7 @@ goog.provide('Blockly.Xml');
goog.require('Blockly.Events.BlockCreate');
goog.require('Blockly.Events.VarCreate');
goog.require('Blockly.Xml.utils');
goog.require('Blockly.Events.FinishedLoading');
/**