mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Fixed Xml goog.require's. Changed Blockly.Events.Ui functions to Blockly.Events.FinishedLoading.
This commit is contained in:
@@ -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'];
|
||||
};
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user