Commit Graph

112 Commits

Author SHA1 Message Date
Neil Fraser
4e2f8e6e02 Use SPDX licences.
This is a followup to #3127.
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Beka Westberg
6d1bb201f7 feat: Improved procedure arg interaction. (#3527)
* feat: Improved procedure arg interaction.

* Added docs.

* Fixed typos and typings.

* Fixed typings?

* Changed visibility to private.
2020-01-07 13:55:46 -08:00
Neil Fraser
123f436e04 Add parens around inline assignments (#3381) 2019-10-31 15:17:35 -07:00
Sam El-Husseini
90ad0789f6 Fix 11 warnings related to variables and variable_model. (#3278)
* Fix 10 warnings related to variables and variable_model.
2019-10-22 14:26:59 -04:00
zochris
f26829eb6d Change variable exists message to show casing 2019-10-13 20:39:06 +02:00
zochris
bf7abee679 Rephrase "variable already exists" message
The message now includes the name with casing of the already existing
variable.
2019-10-13 14:39:03 +02:00
Sam El-Husseini
d0772ad496 Fix compiler warnings related to fields. (#3144)
* Fix compiler warnings related to fields.
2019-10-03 15:58:46 -07:00
Neil Fraser
b46a4fe286 Bring our license format up to date (#3127)
* Google changed from an Inc to an LLC.

This happened back in 2017 but we didn’t notice.  Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.

* Remove project description/titles from licenses

This is no longer part of Google’s header requirements.  Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).

* License no longer requires URL.

* Fix license regexps.
2019-10-02 14:46:56 -07:00
Sam El-Husseini
8ab51c8639 Remove closure base file dependency (#2976)
* Trim down closure's base dependency even further by removing the dependency on closure's base file.
2019-09-11 17:30:51 -07:00
Abby
fe4bff70da Add @public annotation 2019-07-17 11:52:14 -07:00
Abby
0f4a417052 Remove @packages annotation from public methods 2019-07-17 11:38:08 -07:00
Neil Fraser
0e82677f27 Create stub for Node contstants.
Ironic that Node doesn’t have Node.  Not tested.
Fix two missing dependencies.
2019-07-15 14:37:27 -07:00
Neil Fraser
31a9c02362 Stop generating dynamic XML from text.
Removes last goog.string reference.
2019-07-15 14:37:27 -07:00
Beka Westberg
5a4cc7ae12 Removed textToDom Needing <xml> Documents (#2585)
* Removed textToDom needing <xml> documents.

* Fixed jsdoc.

* Followon changes resulting from lack of XML tag.

* Fix Mocha test.
2019-06-24 15:50:06 -07:00
Neil Fraser
aca1a43ec8 Fix regular expressions.
1) Simplifications.
2) Enable toolbox category colours to be specified using the full range of CSS formats (not just hue or #rrggbb).
3) Fix bug where `Blockly.utils.checkMessageReferences('%{BKY_today}  %{BKY_xxx}')` returns true.
2019-06-10 11:03:22 -07:00
Neil Fraser
9f528922a7 Fix some dependencies 2019-05-24 15:45:05 -07:00
asunwoo98
e25734ff25 typo fix in createVariable documentation in variable.js (#2443) 2019-05-06 13:09:50 -07:00
Beka Westberg
3afcd23535 Removed explicitly setting variable type to two single quotes. 2019-05-01 14:31:20 -07:00
Neil Fraser
f118d33855 Corrections to JSDoc comments 2019-03-29 15:24:37 -07:00
Neil Fraser
6862a7fe70 Use hashes instead of objects. 2019-03-29 15:24:37 -07:00
Neil Fraser
405b1e4e78 Lint issues found while debugging. 2019-03-27 15:47:29 -07:00
Beka Westberg
8fff876752 Changed flyout setter/change blocks so the selected variable is the most recently created one. 2019-02-11 15:09:57 -08:00
Rachel Fenichel
2ad4333d12 Look up variable by name if not found by ID 2018-11-27 13:02:33 -08:00
Neil Fraser
db0dbc69ee Update todos and requires. 2018-10-16 11:34:10 -07:00
Neil Fraser
aa09ad9175 Line wrap at 80. 2018-10-16 11:34:10 -07:00
Neil Fraser
dddb94aedd Fix circular dependency. 2018-10-16 11:34:10 -07:00
Neil Fraser
e62bb1af73 Remove all calls to goog.dom.createDom
All XML node cereations are now centralized.
2018-10-16 11:34:10 -07:00
Rachel Fenichel
6092e4c517 Calls to getAllBlocks should pass a value for _ordered_ 2018-09-13 16:06:19 -07:00
Andrew n marshall
c7c9580c51 Rephrase comment, adding date. 2018-08-23 16:00:11 -07:00
Andrew n marshall
243116ca98 Adding warning old function name is detected. 2018-08-23 15:47:49 -07:00
Gokula Krishna
01eccf449b Prioritize recent key 2018-07-24 13:43:18 +08:00
Gokula Krishna
73340a06e5 Add backward compatibility support 2018-07-24 09:54:37 +08:00
Gokula Krishna
7d63b061bc Match docs with code 2018-07-17 14:34:57 +08:00
Neil Fraser
0583bee502 Correct requires for goog.dom 2018-07-11 12:20:02 -07:00
Andrew n marshall
100d9f1a1c Support %{..} in flyout_button (#1927) (#1929)
Expand %{..} references in toolbox <button> and <label>
2018-06-18 11:45:36 -07:00
Neil Fraser
4cb4b42f8d Use named properties on Msg. 2018-04-27 11:50:51 -07:00
Rachel Fenichel
100af3836d Fix #1788 2018-04-16 16:42:18 -07:00
Rachel Fenichel
1dfb53b337 Fix comment 2018-04-13 13:39:28 -07:00
Rachel Fenichel
23666664fa Fix context menus on blocks with variables 2018-04-12 16:56:07 -07:00
jandrewb
237a7d5590 Fix #1745 2018-03-29 19:46:16 -05:00
Neil Fraser
10dbf2cc6d Random typos.
@rachel-fenichel LGTMs in person.
2018-02-21 17:47:01 -08:00
Rachel Fenichel
3b168f5370 Fix #1538 2018-01-26 15:20:19 -08:00
Rachel Fenichel
68ff863ea9 Fix indentation 2018-01-25 13:00:08 -08:00
Rachel Fenichel
794520e225 Add documentation 2018-01-24 17:17:31 -08:00
Rachel Fenichel
96e2d7d102 Fix #1559 2018-01-24 17:05:58 -08:00
Andrew n marshall
36993430e1 createVariable(..) => createVariableButtonHandler(..)
Clarifying the role of Blockly.Variables.createVariableButtonHandler(..).
Updating documentation a making sure it (and its deprecated previous name)
are properly exported.
2018-01-24 09:54:21 -08:00
Rachel Fenichel
e648f11e2d Make another function public 2018-01-18 15:59:26 -08:00
Rachel Fenichel
5cd6a51197 Make some functions public 2018-01-18 15:35:59 -08:00
Rachel Fenichel
b593d44379 Make the potential variable map null when not needed 2018-01-12 14:51:02 -08:00
Rachel Fenichel
a30ad6ff3a More code cleanup for review 2018-01-12 13:28:17 -08:00