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
fd380eee
Commit
fd380eee
authored
Dec 04, 2019
by
Evan W. Patton
Committed by
Susan Rati Lane
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter Form generic blocks out of typeblock (#1928)
Change-Id: Ic9c1a3046c06dcbc582194f013f895d2ed512fc1
parent
f889fdd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
appinventor/blocklyeditor/src/blocks/components.js
appinventor/blocklyeditor/src/blocks/components.js
+8
-0
No files found.
appinventor/blocklyeditor/src/blocks/components.js
View file @
fd380eee
...
@@ -495,6 +495,8 @@ Blockly.Blocks.component_event = {
...
@@ -495,6 +495,8 @@ Blockly.Blocks.component_event = {
});
});
});
});
delete
types
[
'
Form
'
];
Object
.
keys
(
types
).
forEach
(
function
(
typeName
)
{
Object
.
keys
(
types
).
forEach
(
function
(
typeName
)
{
componentDb
.
forEventInType
(
typeName
,
function
(
_
,
eventName
)
{
componentDb
.
forEventInType
(
typeName
,
function
(
_
,
eventName
)
{
tb
.
push
({
tb
.
push
({
...
@@ -830,6 +832,9 @@ Blockly.Blocks.component_method = {
...
@@ -830,6 +832,9 @@ Blockly.Blocks.component_method = {
});
});
});
});
});
});
delete
typeNameDict
[
'
Form
'
];
goog
.
object
.
forEach
(
typeNameDict
,
function
(
componentType
)
{
goog
.
object
.
forEach
(
typeNameDict
,
function
(
componentType
)
{
componentDb
.
forMethodInType
(
componentType
,
function
(
_
,
methodName
)
{
componentDb
.
forMethodInType
(
componentType
,
function
(
_
,
methodName
)
{
tb
.
push
({
tb
.
push
({
...
@@ -1186,6 +1191,9 @@ Blockly.Blocks.component_set_get = {
...
@@ -1186,6 +1191,9 @@ Blockly.Blocks.component_set_get = {
}
}
function
pushGenericBlock
(
prefix
,
mode
,
property
,
typeName
)
{
function
pushGenericBlock
(
prefix
,
mode
,
property
,
typeName
)
{
if
(
typeName
===
'
Form
'
)
{
return
;
// Skip generation of 'any Form' blocks
}
tb
.
push
({
tb
.
push
({
translatedName
:
prefix
+
componentDb
.
getInternationalizedComponentType
(
typeName
)
+
'
.
'
+
translatedName
:
prefix
+
componentDb
.
getInternationalizedComponentType
(
typeName
)
+
'
.
'
+
componentDb
.
getInternationalizedPropertyName
(
property
),
componentDb
.
getInternationalizedPropertyName
(
property
),
...
...
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