mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Rename Warning getAllText function for Comment object compatibility.
This commit is contained in:
@@ -1276,9 +1276,9 @@ Blockly.BlockSvg.prototype.setWarningText = function(text, opt_id) {
|
||||
this.warning.dispose();
|
||||
changedState = true;
|
||||
} else if (this.warning) {
|
||||
var oldText = this.warning.getAllText();
|
||||
var oldText = this.warning.getText();
|
||||
this.warning.setText('', id);
|
||||
var newText = this.warning.getAllText();
|
||||
var newText = this.warning.getText();
|
||||
if (!newText) {
|
||||
this.warning.dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user