Blockly Global Variables #259
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2014-04-28 by @gfwilliams I'm afraid I'm not sure about this - you'd hope that functions would have access to the scope in which they were defined. Perhaps you could ask on Blockly's forum? https://groups.google.com/forum/#!forum/blockly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-04-27 by rsm
Hi, I'm creating my own Blocks in Blockly by editing blockly_espruino.js. I can create global variables at the top of the file like
that are accessible in functions like
but these variables cannot be accessed in functions like
How do I create global variables that I can then edit inside the JavaScript that defines what the block does?
Thanks,
Rehman
Beta Was this translation helpful? Give feedback.
All reactions