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

<script src> in custom element puts methods in global scope #8

Open
ebidel opened this issue Apr 22, 2012 · 0 comments
Open

<script src> in custom element puts methods in global scope #8

ebidel opened this issue Apr 22, 2012 · 0 comments

Comments

@ebidel
Copy link
Contributor

ebidel commented Apr 22, 2012

Currently, foo() is not seen in global scope (index.html that uses x-element). Good!
But bar() is from app.js. Not x-element.html contains <script='app.js'></script>.

app.js:
function bar() {}

x-element.html:


<script='app.js'></script>
...

<script> function foo() { } </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant