122 Commits

Author SHA1 Message Date
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
Rachel Fenichel 80b397f532 Respond to more review comments 2018-01-10 17:27:43 -08:00
Rachel Fenichel 3d0567fe46 JS and Dart generator tests pass 2017-12-20 15:14:37 -08:00
Rachel Fenichel 77a47aee94 Fix html escaping and flyouts opening 2017-12-07 16:08:00 -08:00
Rachel Fenichel cc6eeb8c68 Clean up TODOs and move potential variable map to the flyout workspace 2017-12-07 10:43:12 -08:00
Rachel Fenichel 0909af76e5 Fix missing events for variable creation 2017-12-06 16:41:17 -08:00
Rachel Fenichel 5169b2da18 Get rid of workspace.deleteVariable 2017-12-05 13:44:08 -08:00
Rachel Fenichel e4844cd120 Move getOrCreateVariable to variables.js 2017-12-05 13:08:01 -08:00
Rachel Fenichel 6bb048d1bb All tests pass 2017-12-04 14:29:16 -08:00
Rachel Fenichel 112fcccb31 Fix renaming 2017-11-30 17:12:39 -08:00
Rachel Fenichel 86e88aae92 Can now create a variable with the button in the flyout; drag a block with a variable out of the flyout; handle default variable names; and import and export variables 2017-11-30 16:30:58 -08:00
Rachel Fenichel b870c3ccb9 Allow variables of different types to share the same name. 2017-11-30 13:16:16 -08:00
Rachel Fenichel 30716fbd78 switch to variabletype everywhere 2017-11-03 16:03:32 -07:00
Neil Fraser 63637a927a Remove unnecessary restriction on variable names. 2017-11-01 12:08:53 -07:00
Neil Fraser 8779a8c3d9 Introduce minimap to style guide. 2017-10-24 14:06:29 -07:00
Neil Fraser e100c66659 Linting. 2017-10-24 14:06:29 -07:00
Neil Fraser 4262b09002 Resolve 106 warnings. 2017-10-24 14:06:29 -07:00
Rachel Fenichel b2492dec67 Escape variable names correctly when serializing to XML (#1279) 2017-08-18 11:18:49 -07:00
marisaleung 234c53157f Fix Blockly.Procedures.isNameUsed return values.
Add tests for Procedures.isNameUsed() so this bug never happens again.
2017-07-28 12:02:14 -07:00
marisaleung db2f9a2b09 Add opt_type to Blockly.Variables.CreateVariable. 2017-07-21 13:43:13 -07:00
marisaleung 733d869f8e Add VariableType checks. 2017-07-20 16:47:37 -07:00
CoryDCode f48a68a9ef Adding automatically-generated variable lists to the accessible toolbox. (#1149)
Fixing a bug with the core-only uncompressed file not finding its own directory.
2017-06-05 13:42:51 -07:00
marisaleung 3b34038445 Add variable info to xml generated in variables.js 2017-05-19 17:07:12 -07:00
marisaleung 2bb258165a Names are correctly fetched from VariableModels! 2017-05-09 08:50:11 -07:00
marisaleung 2b1fe1c4e3 Merge pull request #1071 from marisaleung/develop
VariableMap and functions added.
2017-05-03 13:20:05 -07:00
marisaleung d903b5e86b VariableMap and functions added. 2017-05-03 10:51:24 -07:00
Rachel Fenichel 507c13ed33 Fix #1069 (#1073) 2017-05-02 17:06:03 -07:00
Rachel Fenichel 4b75b6271b Make it easier to read the code that creates the variable category in the tolbox 2017-03-02 13:55:25 -08:00
Andrew n marshall e95991cba8 Adding @namespace annotations for JSDoc. (#900) 2017-02-01 09:10:35 -08:00
Rachel Fenichel 3742788557 annotation updates 2017-01-26 16:37:35 -08:00
Rachel Fenichel 4872a6ad7f Enable custom flyout categories. 2017-01-23 17:21:48 -08:00
Rachel Fenichel 086fd720b2 Associate flyout button callbacks directly with workspaces 2016-12-08 13:05:19 -08:00
Rachel Fenichel 703bd96f7e Allow creation of buttons with developer-designated callbacks 2016-10-31 14:24:00 -07:00
Andrew n marshall 8f3b4bcb5e Replaces calls to window.alert(), window.confirm(), and window.prompt() with Blockly.alert(), Blockly.confirm(), and Blockly.prompt(). These are designed to allow app developers to replace the dialogs with versions that match their own open app, possibly avoiding modal browser dialogs. They each take a callback, so the developer has the opportunity to implement non-modal behavior. 2016-10-20 16:30:40 -07:00
Rachel Fenichel d2ce081dc4 Move functions for updating variables on a workspace into workspace.js, and some lint 2016-08-17 16:07:50 -07:00
Rachel Fenichel 19722e2350 Use a Blockly.Msg for button text 2016-08-16 16:53:53 -07:00
Rachel Fenichel 775e298c2c Disallow deleting variables that are used in the definition of a function 2016-08-11 17:10:15 -07:00
Rachel Fenichel cdbfce87de Make disposeUses private 2016-08-09 11:30:32 -07:00
Rachel Fenichel bf6220cb42 Ask user for confirmation when deleting multiple uses of a variable. 2016-08-09 10:45:26 -07:00
Rachel Fenichel 75e06de477 Use instanceof to distinguish between blocks and workspaces. 2016-07-13 12:50:44 -07:00
Rachel Fenichel 2364aed716 Distinguish between allVariables and allUsedVariables 2016-07-07 15:23:20 -07:00