diff --git a/core/utils/aria.js b/core/utils/aria.js index 189c99898..4cacc1ff7 100644 --- a/core/utils/aria.js +++ b/core/utils/aria.js @@ -12,6 +12,10 @@ */ 'use strict'; +/** + * @name Blockly.utils.aria + * @namespace + */ goog.provide('Blockly.utils.aria'); diff --git a/core/utils/deprecation.js b/core/utils/deprecation.js index ca9c19ab4..1fde59f72 100644 --- a/core/utils/deprecation.js +++ b/core/utils/deprecation.js @@ -7,12 +7,17 @@ /** * @fileoverview Helper function for warning developers about deprecations. * This method is not specific to Blockly. - * @author fenichel@google.com (Rachel Fenichel); + * @author fenichel@google.com (Rachel Fenichel) */ 'use strict'; +/** + * @name Blockly.utils.deprecation + * @namespace + */ goog.provide('Blockly.utils.deprecation'); + /** * Warn developers that a function is deprecated. * @param {string} functionName The name of the function. diff --git a/core/utils/idgenerator.js b/core/utils/idgenerator.js index e17c51f31..347b71d02 100644 --- a/core/utils/idgenerator.js +++ b/core/utils/idgenerator.js @@ -12,6 +12,10 @@ */ 'use strict'; +/** + * @name Blockly.utils.IdGenerator + * @namespace + */ goog.provide('Blockly.utils.IdGenerator'); diff --git a/core/utils/keycodes.js b/core/utils/keycodes.js index 2129dadf1..a5be94cb8 100644 --- a/core/utils/keycodes.js +++ b/core/utils/keycodes.js @@ -12,6 +12,10 @@ */ 'use strict'; +/** + * @name Blockly.utils.KeyCodes + * @namespace + */ goog.provide('Blockly.utils.KeyCodes'); diff --git a/core/utils/object.js b/core/utils/object.js index 34b4d0034..37837ee3e 100644 --- a/core/utils/object.js +++ b/core/utils/object.js @@ -10,6 +10,10 @@ */ 'use strict'; +/** + * @name Blockly.utils.object + * @namespace + */ goog.provide('Blockly.utils.object'); diff --git a/core/utils/toolbox.js b/core/utils/toolbox.js index adaba33f1..e50f3b07f 100644 --- a/core/utils/toolbox.js +++ b/core/utils/toolbox.js @@ -10,6 +10,10 @@ */ 'use strict'; +/** + * @name Blockly.utils.toolbox + * @namespace + */ goog.provide('Blockly.utils.toolbox'); /** @suppress {extraRequire} */ diff --git a/core/utils/useragent.js b/core/utils/useragent.js index 453fa01d2..0df8467ed 100644 --- a/core/utils/useragent.js +++ b/core/utils/useragent.js @@ -20,6 +20,7 @@ goog.provide('Blockly.utils.userAgent'); goog.require('Blockly.utils.global'); + /** @const {boolean} */ Blockly.utils.userAgent.IE; diff --git a/core/utils/xml.js b/core/utils/xml.js index 4bd3f7dfa..26f7bfc47 100644 --- a/core/utils/xml.js +++ b/core/utils/xml.js @@ -18,6 +18,7 @@ */ goog.provide('Blockly.utils.xml'); + /** * Namespace for Blockly's XML. */ diff --git a/externs/generator-externs.js b/externs/generator-externs.js index 288c3aa2a..450735e25 100644 --- a/externs/generator-externs.js +++ b/externs/generator-externs.js @@ -13,6 +13,7 @@ goog.provide('Blockly'); goog.provide('Blockly.Generator'); goog.provide('Blockly.inputTypes'); goog.provide('Blockly.utils.global'); +goog.provide('Blockly.utils.object'); goog.provide('Blockly.utils.string'); var Blockly; diff --git a/scripts/package/node/core.js b/scripts/package/node/core.js index 8f7745304..7935f0cc5 100644 --- a/scripts/package/node/core.js +++ b/scripts/package/node/core.js @@ -23,8 +23,8 @@ Blockly.setLocale = function (locale) { // Override textToDomDocument and provide Node.js alternatives to DOMParser and // XMLSerializer. if (typeof Blockly.utils.global.document !== 'object') { - Blockly.utils.global.DOMParser = require("jsdom/lib/jsdom/living").DOMParser; - Blockly.utils.global.XMLSerializer = require("jsdom/lib/jsdom/living").XMLSerializer; + Blockly.utils.global.DOMParser = require('jsdom/lib/jsdom/living').DOMParser; + Blockly.utils.global.XMLSerializer = require('jsdom/lib/jsdom/living').XMLSerializer; var doc = Blockly.utils.xml.textToDomDocument( ''); Blockly.utils.xml.document = function() {