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
ece2e892
Commit
ece2e892
authored
Oct 30, 2019
by
Evan W. Patton
Committed by
Susan Rati Lane
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix exception caused by attempting to open flydown during drag from toolbox
Change-Id: Iaac765df9371acb8672df71bb12b22e02fd40cb9
parent
aebfccf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
appinventor/blocklyeditor/src/field_flydown.js
appinventor/blocklyeditor/src/field_flydown.js
+7
-3
No files found.
appinventor/blocklyeditor/src/field_flydown.js
View file @
ece2e892
...
...
@@ -133,10 +133,14 @@ Blockly.FieldFlydown.prototype.onMouseOut_ = function(e) {
Blockly
.
FieldFlydown
.
prototype
.
showFlydownMaker_
=
function
()
{
var
field
=
this
;
// Name receiver in variable so can close over this variable in returned thunk
return
function
()
{
if
(
Blockly
.
FieldFlydown
.
showPid_
!=
0
)
{
field
.
showFlydown_
();
Blockly
.
FieldFlydown
.
showPid_
=
0
;
if
(
Blockly
.
FieldFlydown
.
showPid_
!==
0
&&
Blockly
.
dragMode_
===
Blockly
.
DRAG_NONE
)
{
try
{
field
.
showFlydown_
();
}
catch
(
e
)
{
console
.
error
(
'
Failed to show flydown
'
,
e
);
}
}
Blockly
.
FieldFlydown
.
showPid_
=
0
;
};
};
...
...
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