mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Clean up temporary generator data.
This commit is contained in:
@@ -142,6 +142,10 @@ Blockly.JavaScript.finish = function(code) {
|
||||
for (var name in Blockly.JavaScript.definitions_) {
|
||||
definitions.push(Blockly.JavaScript.definitions_[name]);
|
||||
}
|
||||
// Clean up temporary data.
|
||||
delete Blockly.JavaScript.definitions_;
|
||||
delete Blockly.JavaScript.functionNames_;
|
||||
Blockly.JavaScript.variableDB_.reset();
|
||||
return definitions.join('\n\n') + '\n\n\n' + code;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user