Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
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
appinventor-sources
Commits
001fa913
Commit
001fa913
authored
Sep 18, 2023
by
Evan W. Patton
Committed by
Susan Rati Lane
Oct 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix procedure names not set in backpack
Change-Id: Ibc7be86b92f0072f77187ffcda6d8ba0c035bb6d
parent
d616b161
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
appinventor/blocklyeditor/src/field_procedurename.js
appinventor/blocklyeditor/src/field_procedurename.js
+2
-2
No files found.
appinventor/blocklyeditor/src/field_procedurename.js
View file @
001fa913
...
@@ -33,12 +33,12 @@ goog.inherits(AI.Blockly.FieldProcedureName, Blockly.FieldTextInput);
...
@@ -33,12 +33,12 @@ goog.inherits(AI.Blockly.FieldProcedureName, Blockly.FieldTextInput);
* @override
* @override
*/
*/
AI
.
Blockly
.
FieldProcedureName
.
prototype
.
setValue
=
function
(
newValue
)
{
AI
.
Blockly
.
FieldProcedureName
.
prototype
.
setValue
=
function
(
newValue
)
{
var
oldValue
=
this
.
getValue
();
AI
.
Blockly
.
FieldProcedureName
.
superClass_
.
setValue
.
call
(
this
,
newValue
);
if
(
this
.
sourceBlock_
&&
this
.
sourceBlock_
.
isInFlyout
)
{
if
(
this
.
sourceBlock_
&&
this
.
sourceBlock_
.
isInFlyout
)
{
// Do not take action for blocks in flyouts
// Do not take action for blocks in flyouts
return
;
return
;
}
}
var
oldValue
=
this
.
getValue
();
AI
.
Blockly
.
FieldProcedureName
.
superClass_
.
setValue
.
call
(
this
,
newValue
);
newValue
=
this
.
getValue
();
newValue
=
this
.
getValue
();
if
(
typeof
newValue
===
'
string
'
&&
this
.
sourceBlock_
)
{
if
(
typeof
newValue
===
'
string
'
&&
this
.
sourceBlock_
)
{
var
procDb
=
this
.
sourceBlock_
.
workspace
.
getProcedureDatabase
();
var
procDb
=
this
.
sourceBlock_
.
workspace
.
getProcedureDatabase
();
...
...
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