Commit d773adb7 authored by carlosperate's avatar carlosperate

Rename Warning getAllText function for Comment object compatibility.

parent 0274763b
This diff is collapsed.
......@@ -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();
}
......
......@@ -88,7 +88,7 @@ Blockly.Warning.prototype.setVisible = function(visible) {
}
if (visible) {
// Create the bubble to display all warnings.
var paragraph = Blockly.Warning.textToDom_(this.getAllText());
var paragraph = Blockly.Warning.textToDom_(this.getText());
this.bubble_ = new Blockly.Bubble(
/** @type {!Blockly.Workspace} */ (this.block_.workspace),
paragraph, this.block_.svgPath_,
......@@ -148,7 +148,7 @@ Blockly.Warning.prototype.setText = function(text, id) {
* Get this warning's texts.
* @return {string} All texts concatenated into one string.
*/
Blockly.Warning.prototype.getAllText = function() {
Blockly.Warning.prototype.getText = function() {
var allWarnings = [];
for (var id in this.text_) {
allWarnings.push(this.text_[id]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment