Adding JsDoc @this for closure in jsonInitFactory(). (#1833)

This commit is contained in:
Andrew n marshall
2018-05-01 11:05:35 -07:00
committed by GitHub
parent 9ce9c6f7d9
commit 42e0439aa3

View File

@@ -386,6 +386,7 @@ Blockly.prompt = function(message, defaultValue, callback) {
* @private
*/
Blockly.jsonInitFactory_ = function(jsonDef) {
/** @this Blockly.Block */
return function() {
this.jsonInit(jsonDef);
};