From 27036ea6bedb8c406e613d18a4fd0e66dc7302fd Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Mon, 20 Aug 2018 11:08:13 -0700 Subject: [PATCH] Add documentation to boot.js This file's jsdoc had diverged a good bit from the internal version --- lib/utils/boot.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/utils/boot.js b/lib/utils/boot.js index ec500c55ae..5fc25b58a6 100644 --- a/lib/utils/boot.js +++ b/lib/utils/boot.js @@ -8,6 +8,18 @@ Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -window.JSCompiler_renameProperty = function(prop) { return prop; }; +/* eslint-disable no-unused-vars */ +/** + * When using Closure Compiler, JSCompiler_renameProperty(property, object) is replaced by the munged name for object[property] + * We cannot alias this function, so we have to use a small shim that has the same behavior when not compiling. + * + * @param {string} prop + * @param {?Object} obj + * @return {string} + */ +window.JSCompiler_renameProperty = function(prop, obj) { + return prop; +}; +/* eslint-enable */ export {};