Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.8] Global settings overwritten by webcomponents #1404

Closed
clintwood opened this issue Apr 13, 2015 · 2 comments
Closed

[0.8] Global settings overwritten by webcomponents #1404

clintwood opened this issue Apr 13, 2015 · 2 comments
Assignees
Labels

Comments

@clintwood
Copy link

Just in case someone else bumps up against this...

The documentation states that global settings should be the first script in the main document. So one would tend to do the following:

  <head>
    <title>Polymer Sample</title>
    <script>Polymer = {dom: 'shadow'};</script>
    <script src="./bower_components/webcomponentsjs/webcomponents.js"></script>
    <!-- <script>Polymer = {dom: 'shadow'};</script> -->
    <link rel="import" href="./bower_components/polymer/polymer.html">
  </head>

However, webcomponents.js overwrites the global Polymer variable.

This is not the case when following the 0.8-preview recommendation to use webcomponents-lite.js.

Alternatively you can move the script tag that declares the Polymer variable to just above the import link tag (as show in the commented script tag above).

@arthurevans arthurevans self-assigned this Apr 13, 2015
@arthurevans
Copy link

Good catch -- thanks. Will fix.

@arthurevans
Copy link

This issue was moved to Polymer/old-docs-site#1017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants