mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Add Create, Delete, and Change events.
Not counting change for mutators.
This commit is contained in:
@@ -77,7 +77,6 @@ Blockly.Workspace.SCAN_ANGLE = 3;
|
||||
*/
|
||||
Blockly.Workspace.prototype.addTopBlock = function(block) {
|
||||
this.topBlocks_.push(block);
|
||||
this.fireChangeEvent();
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -96,7 +95,6 @@ Blockly.Workspace.prototype.removeTopBlock = function(block) {
|
||||
if (!found) {
|
||||
throw 'Block not present in workspace\'s list of top-most blocks.';
|
||||
}
|
||||
this.fireChangeEvent();
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -193,13 +191,6 @@ Blockly.Workspace.prototype.remainingCapacity = function() {
|
||||
return this.options.maxBlocks - this.getAllBlocks().length;
|
||||
};
|
||||
|
||||
/**
|
||||
* Something on this workspace has changed.
|
||||
*/
|
||||
Blockly.Workspace.prototype.fireChangeEvent = function() {
|
||||
// NOP.
|
||||
};
|
||||
|
||||
/**
|
||||
* Database of all workspaces.
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user