Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
d773adb7
Commit
d773adb7
authored
Aug 17, 2015
by
carlosperate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename Warning getAllText function for Comment object compatibility.
parent
0274763b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
blockly_compressed.js
blockly_compressed.js
+4
-4
core/block_svg.js
core/block_svg.js
+2
-2
core/warning.js
core/warning.js
+2
-2
No files found.
blockly_compressed.js
View file @
d773adb7
This diff is collapsed.
Click to expand it.
core/block_svg.js
View file @
d773adb7
...
...
@@ -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
.
get
All
Text
();
var
oldText
=
this
.
warning
.
getText
();
this
.
warning
.
setText
(
''
,
id
);
var
newText
=
this
.
warning
.
get
All
Text
();
var
newText
=
this
.
warning
.
getText
();
if
(
!
newText
)
{
this
.
warning
.
dispose
();
}
...
...
core/warning.js
View file @
d773adb7
...
...
@@ -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
.
get
All
Text
());
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
.
get
All
Text
=
function
()
{
Blockly
.
Warning
.
prototype
.
getText
=
function
()
{
var
allWarnings
=
[];
for
(
var
id
in
this
.
text_
)
{
allWarnings
.
push
(
this
.
text_
[
id
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment