Skip to content

Commit

Permalink
Prevent renaming of properties added to Window and Node so that other…
Browse files Browse the repository at this point in the history
… closure-compiler compiled code doesn't conflict.
  • Loading branch information
ChadKillingsworth committed May 23, 2017
1 parent 6218302 commit eab68f0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions externs/shadydom.js
@@ -1,14 +1,30 @@
/**
* @fileoverview Externs to upstream to closure compiler
* @fileoverview Externs for closure compiler
* @externs
*/

/**
* Upstream to closure-compiler
* @type {string}
*/
Element.prototype.slot;

/**
* Upstream to closure-compiler
* @type {Object}
*/
Node.prototype.__shady;
Node.prototype.__shady;

/**
* Block renaming of properties added to Window to
* prevent conflicts with other closure-compiler code.
* @type {Object}
*/
Window.prototype.__handlers;

/**
* Block renaming of properties added to Node to
* prevent conflicts with other closure-compiler code.
* @type {Object}
*/
Node.prototype.__handlers;

0 comments on commit eab68f0

Please sign in to comment.