Avoid global Polymer variable in the code

This change replaces usages of Polymer global variable with imported
functions. The bundled-polymer.js are still imported, but only in entry
points: gr-app.js and embed/gr-diff.js as well as in test setup (to
still have Polymer available on `window` to plugins and embed usages).

Change-Id: I0afec9272c7bb752db7da23ca6364f64b230fe2b
This commit is contained in:
Dmitrii Filippov
2020-04-23 15:08:21 +02:00
parent ec88575cf2
commit 1f9cac8d5d
190 changed files with 203 additions and 529 deletions

View File

@@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import '../../../scripts/bundled-polymer.js';
import '../../settings/gr-settings-view/gr-settings-item.js';
import '../../settings/gr-settings-view/gr-settings-menu-item.js';
const $_documentContainer = document.createElement('template');