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