Merge branch 'develop' into master

This commit is contained in:
Andrew n marshall
2018-09-04 16:16:23 -07:00
committed by GitHub
2 changed files with 5 additions and 6 deletions

View File

@@ -53,14 +53,13 @@ goog.require('goog.math.Coordinate');
* @param {string=} opt_id Optional ID. Use this ID if provided, otherwise
* create a new ID.
* @constructor
* @throw When block is not valid or block name is not allowed.
*/
Blockly.Block = function(workspace, prototypeName, opt_id) {
if (typeof Blockly.Generator.prototype[prototypeName] !== 'undefined') {
console.warn('FUTURE ERROR: Block prototypeName "' + prototypeName +
'" conflicts with Blockly.Generator members. Registering Generators ' +
'for this block type will incur errors.' +
'\nThis name will be DISALLOWED (throwing an error) in future ' +
'versions of Blockly.');
// Occluding Generator class members is not allowed.
throw Error('Block prototypeName "' + prototypeName +
'" conflicts with Blockly.Generator members.');
}
/** @type {string} */

View File

@@ -1,6 +1,6 @@
{
"name": "blockly",
"version": "1.20180904.0",
"version": "1.20180904.0-develop",
"description": "Blockly is a library for building visual programming editors.",
"main": "blockly_node_javascript_en.js",
"keywords": [