amber-cd
492d0719d6
Pull Request: Split showContextMenu_ ( #2581 )
...
* Split showContextMenu_
Split showContextMenu_ into generateContextMenu_ and showContextMenu_. This allows for custom Blockly forks to easily extend the context menu options available on all blocks by just doing something like
```
var oldGenerateContextMenu_ = Blockly.BlockSvg.prototype.generateContextMenu_;
Blockly.BlockSvg.prototype.generateContextMenu_ = function() {
var menuOptions = Blockly.BlockSvg.prototype.generateContextMenu_() || [];
// Push other options into menuOptions
return menuOptions;
}
```
Rather than having to modify the core code in such a way as to cause unnecessary maintenance overhead when upgrading Blockly versions.
* Forgot the docblock, sorry
* Oops, missed a few ESLint things
* Update block_svg.js
Updated to be protected rather than private.
2019-06-21 15:14:11 -07:00
..
2019-06-07 10:32:57 -07:00
2019-06-12 10:59:33 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-21 15:14:11 -07:00
2019-06-07 10:32:57 -07:00
2019-06-12 10:59:33 -07:00
2017-10-24 14:06:29 -07:00
2019-06-07 10:32:57 -07:00
2019-06-12 10:59:33 -07:00
2019-06-07 10:32:57 -07:00
2019-06-12 13:15:39 -07:00
2019-06-12 13:15:39 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-10 13:20:33 -07:00
2019-06-07 10:32:57 -07:00
2019-06-11 13:32:10 -07:00
2019-05-24 15:45:05 -07:00
2019-05-17 16:48:40 -07:00
2019-05-24 15:45:05 -07:00
2019-06-11 14:29:19 -07:00
2019-06-07 10:32:57 -07:00
2019-06-11 16:22:24 -07:00
2019-06-12 10:59:33 -07:00
2019-06-11 14:24:48 -07:00
2019-06-11 13:32:09 -07:00
2019-05-24 14:23:42 -07:00
2019-06-11 13:30:50 -07:00
2019-05-29 12:48:55 -07:00
2019-06-12 10:59:33 -07:00
2019-06-11 13:32:09 -07:00
2019-06-21 13:36:25 -07:00
2019-06-12 10:59:33 -07:00
2019-06-07 10:32:57 -07:00
2018-07-11 12:20:02 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-05-17 16:48:40 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-04-24 16:07:47 -07:00
2019-06-07 10:32:57 -07:00
2019-03-29 15:24:37 -07:00
2019-06-07 10:32:57 -07:00
2018-02-21 17:47:01 -08:00
2019-06-12 10:59:33 -07:00
2019-06-10 11:03:22 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-05-30 10:05:06 -07:00
2019-06-10 11:03:22 -07:00
2019-06-11 13:32:10 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-04-01 11:15:46 -07:00
2019-06-07 10:32:57 -07:00
2019-06-10 11:03:22 -07:00
2018-07-11 12:20:02 -07:00
2019-05-24 15:45:05 -07:00
2019-05-24 15:45:05 -07:00
2019-05-24 15:45:05 -07:00
2019-06-10 11:03:22 -07:00
2019-06-07 10:32:57 -07:00
2019-05-24 15:45:05 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00
2019-05-24 15:45:05 -07:00
2019-06-12 13:15:39 -07:00
2019-06-12 13:15:39 -07:00
2019-06-07 10:32:57 -07:00
2019-05-17 16:48:40 -07:00
2019-06-07 10:32:57 -07:00
2019-06-07 10:32:57 -07:00