diff --git a/core/workspace_svg.js b/core/workspace_svg.js index dad558f93..5d5345c54 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -75,8 +75,8 @@ goog.inherits(Blockly.WorkspaceSvg, Blockly.Workspace); Blockly.WorkspaceSvg.prototype.resizeHandlerWrapper_ = null; /** - * The render status of an SVG workspace. - * Returns `true` for visible workspaces and `false` for non-visible, or headless, workspaces. + * The render status of an SVG workspace. + * Returns `true` for visible workspaces and `false` for non-visible, or headless, workspaces. * @type {boolean} */ Blockly.WorkspaceSvg.prototype.rendered = true; @@ -316,7 +316,7 @@ Blockly.WorkspaceSvg.prototype.dispose = function() { * @param {?string} prototypeName Name of the language object containing * type-specific functions for this block. * @param {string=} opt_id Optional ID. Use this ID if provided, otherwise - * create a new id. + * create a new ID. * @return {!Blockly.BlockSvg} The created block. */ Blockly.WorkspaceSvg.prototype.newBlock = function(prototypeName, opt_id) { diff --git a/demos/blockfactory/app_controller.js b/demos/blockfactory/app_controller.js index 62a1412b5..225078b81 100644 --- a/demos/blockfactory/app_controller.js +++ b/demos/blockfactory/app_controller.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 @@ -134,7 +134,7 @@ AppController.prototype.exportBlockLibraryToFile = function() { var blockLibText = this.formatBlockLibraryForExport_(blockLib); // Get file name. var filename = prompt('Enter the file name under which to save your block ' + - 'library.'); + 'library.', 'library.xml'); // Download file if all necessary parameters are provided. if (filename) { FactoryUtils.createAndDownloadFile(blockLibText, filename, 'xml'); diff --git a/demos/blockfactory/block_exporter_controller.js b/demos/blockfactory/block_exporter_controller.js index 5fc20b753..55da2d4fc 100644 --- a/demos/blockfactory/block_exporter_controller.js +++ b/demos/blockfactory/block_exporter_controller.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/block_exporter_tools.js b/demos/blockfactory/block_exporter_tools.js index 1be79a8e2..88e17a2e2 100644 --- a/demos/blockfactory/block_exporter_tools.js +++ b/demos/blockfactory/block_exporter_tools.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/block_exporter_view.js b/demos/blockfactory/block_exporter_view.js index 30d4857c3..fbeddaf47 100644 --- a/demos/blockfactory/block_exporter_view.js +++ b/demos/blockfactory/block_exporter_view.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/block_library_controller.js b/demos/blockfactory/block_library_controller.js index e5094995f..6754e6f41 100644 --- a/demos/blockfactory/block_library_controller.js +++ b/demos/blockfactory/block_library_controller.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/block_library_storage.js b/demos/blockfactory/block_library_storage.js index 25729d823..750717752 100644 --- a/demos/blockfactory/block_library_storage.js +++ b/demos/blockfactory/block_library_storage.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 @@ -166,5 +166,5 @@ BlockLibraryStorage.prototype.getBlockXmlTextMap = function() { * @return {boolean} Whether or not blockType is stored in block library. */ BlockLibraryStorage.prototype.has = function(blockType) { - return this.blocks[blockType] ? true : false; + return !!this.blocks[blockType]; }; diff --git a/demos/blockfactory/block_library_view.js b/demos/blockfactory/block_library_view.js index cb51c6129..444c91c6d 100644 --- a/demos/blockfactory/block_library_view.js +++ b/demos/blockfactory/block_library_view.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/block_option.js b/demos/blockfactory/block_option.js index b54e85736..90efe405f 100644 --- a/demos/blockfactory/block_option.js +++ b/demos/blockfactory/block_option.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/factory.css b/demos/blockfactory/factory.css index f212b1d49..be2ebc40a 100644 --- a/demos/blockfactory/factory.css +++ b/demos/blockfactory/factory.css @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/factory.js b/demos/blockfactory/factory.js index 873c007b2..97f5ff946 100644 --- a/demos/blockfactory/factory.js +++ b/demos/blockfactory/factory.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/factory_utils.js b/demos/blockfactory/factory_utils.js index a5954e86a..f961c0bdf 100644 --- a/demos/blockfactory/factory_utils.js +++ b/demos/blockfactory/factory_utils.js @@ -1,12 +1,12 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); - * You may not use this file except in compliance with the License. + * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 diff --git a/demos/blockfactory/standard_categories.js b/demos/blockfactory/standard_categories.js index c3b518457..6b4072680 100644 --- a/demos/blockfactory/standard_categories.js +++ b/demos/blockfactory/standard_categories.js @@ -1,6 +1,6 @@ /** * @license - * Visual Blocks Editor + * Blockly Demos: Block Factory * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ diff --git a/demos/blockfactory/workspacefactory/index.html b/demos/blockfactory/workspacefactory/index.html index c45c449a1..92b4668e0 100644 --- a/demos/blockfactory/workspacefactory/index.html +++ b/demos/blockfactory/workspacefactory/index.html @@ -454,70 +454,6 @@ goog.require('goog.ui.ColorPicker');