Skip to content

Commit

Permalink
Add documentation to boot.js
Browse files Browse the repository at this point in the history
This file's jsdoc had diverged a good bit from the internal version
  • Loading branch information
rictic authored Aug 20, 2018
1 parent 33ab3ae commit 27036ea
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/utils/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};

0 comments on commit 27036ea

Please sign in to comment.