Rename Warning getAllText function for Comment object compatibility.

This commit is contained in:
carlosperate
2015-08-17 15:23:08 +01:00
parent 0274763beb
commit d773adb7b3
3 changed files with 8 additions and 8 deletions

View File

@@ -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();
}