From b4e643f22e24c2a7b340bfc62325214bb4abc837 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 25 Jan 2019 17:08:30 -0800 Subject: [PATCH] Fixed Xml goog.require's. Changed Blockly.Events.Ui functions to Blockly.Events.FinishedLoading. --- core/workspace_events.js | 4 ++-- core/xml.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/workspace_events.js b/core/workspace_events.js index 9c689557d..b4c78e2de 100644 --- a/core/workspace_events.js +++ b/core/workspace_events.js @@ -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']; }; diff --git a/core/xml.js b/core/xml.js index da4a6db3c..ecabc500e 100644 --- a/core/xml.js +++ b/core/xml.js @@ -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'); /**