Fire VAR events and test.

This commit is contained in:
marisaleung
2017-06-05 16:35:56 -07:00
parent 7b29eca8e7
commit 833c2d0c40
5 changed files with 406 additions and 6 deletions

View File

@@ -75,6 +75,8 @@ Blockly.VariableModel = function(workspace, name, opt_type, opt_id) {
* @private
*/
this.id_ = opt_id || Blockly.utils.genUid();
Blockly.Events.fire(new Blockly.Events.VarCreate(this));
};
/**