PolymerElements / iron-ajax

Easily make ajax requests
https://www.webcomponents.org/element/PolymerElements/iron-ajax
127 stars 113 forks source link

Closure Compiler (polymer_version=2, compilation_level: 'ADVANCED') fails #297

Open nimendra opened 6 years ago

nimendra commented 6 years ago

Description

The iron-ajax element causes it's host element to throw a Uncaught TypeError: Cannot read property 'ub' of undefined when compiled with closure advanced mode.

Expected outcome

Element transpiles and generates minified JS without renaming public attributes

Actual outcome

Possibly required public property renamed and no longer accessible

Live Demo

-

Steps to reproduce

  1. Put a iron-ajax element inside a custom polymer element (or a page).

  2. Closure-compile compilation_level: 'ADVANCED', polymer_version: 2,

  3. Load the page

Browsers Affected