Open RebeccaStevens opened 6 years ago
When using the Closure Compiler with the 3.0 preview version of this element, Constant reassigned errors occur:
Constant reassigned
stdin:25174: ERROR - Constant reassigned: _lockedElementCache _lockedElementCache = []; ^^^^^^^^^^^^^^^^^^^ stdin:25175: ERROR - Constant reassigned: _unlockedElementCache _unlockedElementCache = []; ^^^^^^^^^^^^^^^^^^^^^
version: @polymer/iron-overlay-behavior#3.0.0-pre.10
@polymer/iron-overlay-behavior#3.0.0-pre.10
https://github.com/PolymerElements/iron-overlay-behavior/blob/1cbc71fce4d7c6e32b445e8f350b9d507904b363/iron-scroll-manager.js#L102-L103
If I change the lines above to use let instead of const, the compiler no longer complains.
let
const
Related #267
Looks like polymer-modulizer always converts object properties to const variables - @aomarks @FredKSchott could you take a look?
polymer-modulizer
When using the Closure Compiler with the 3.0 preview version of this element,
Constant reassigned
errors occur:version:
@polymer/iron-overlay-behavior#3.0.0-pre.10
Lines at fault
https://github.com/PolymerElements/iron-overlay-behavior/blob/1cbc71fce4d7c6e32b445e8f350b9d507904b363/iron-scroll-manager.js#L102-L103
If I change the lines above to use
let
instead ofconst
, the compiler no longer complains.