From c0053531897ad8f7486a5f197ea3cd1803374c6b Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 26 Jan 2017 16:27:05 -0800 Subject: [PATCH] annotation updates --- core/blockly.js | 2 +- core/field.js | 2 +- core/variables.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/blockly.js b/core/blockly.js index 7d71259c4..a3eeb68df 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -388,7 +388,7 @@ Blockly.prompt = function(message, defaultValue, callback) { * Helper function for defining a block from JSON. The resulting function has * the correct value of jsonDef at the point in code where jsonInit is called. * @param {!Object} jsonDef The JSON definition of a block. - * @return {function} A function that calls jsonInit with the correct value + * @return {function()} A function that calls jsonInit with the correct value * of jsonDef. * @private */ diff --git a/core/field.js b/core/field.js index a8f503da6..c4596627d 100644 --- a/core/field.js +++ b/core/field.js @@ -68,7 +68,7 @@ Blockly.Field.cacheReference_ = 0; /** * Name of field. Unique within each block. * Static labels are usually unnamed. - * @type {string=} + * @type {string|undefined} */ Blockly.Field.prototype.name = undefined; diff --git a/core/variables.js b/core/variables.js index 8eec06df4..5a1f69808 100644 --- a/core/variables.js +++ b/core/variables.js @@ -233,8 +233,8 @@ Blockly.Variables.generateUniqueName = function(workspace) { * Create a new variable on the given workspace. * @param {!Blockly.Workspace} workspace The workspace on which to create the * variable. - * @param {function(null|undefined|string)=} opt_callback A callback. It will - * return an acceptable new variable name, or null if change is to be + * @param {function(?string=)=} opt_callback A callback. It will + * be passed an acceptable new variable name, or null if change is to be * aborted (cancel button), or undefined if an existing variable was chosen. */ Blockly.Variables.createVariable = function(workspace, opt_callback) {