-
Notifications
You must be signed in to change notification settings - Fork 491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
README.md
Outdated
**TL; DR: ** Use `webcomponents-es5-loader.js` only if you want to deploy ES5 code to _all_ browsers (both with and without native custom elements support) -- if this isn't a requirement, then use | ||
`webcomponents-loader.js` instead. | ||
```html | ||
<script src="bower_components/webcomponentsjs/custom-elements-es5-adapter.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you still need a loader for the actual polyfill?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you do, this example was for Chrome. I shall put the loader in here i guess..!
LGTM 2 |
901132f
to
f8b627e
Compare
@valdrinkoshi |
@MayhemYDG the adapter MUST stay ES6 mainly because it has to extend From my tests, in IE11/Edge loading |
Oh weird. I've tested with the VM provided in modern.ie, with Windows 8.1 and IE11. |
@valdrinkoshi I've tested with IE11 on a Windows 7 VM and is clear that it doesn't support arrow functions. |
My (rough) understanding is you'll get a syntax error in IE11 but it's harmless so long as the adapter is not bundled with the rest of your code. |
actually i may be wrong, cc @justinfagnani to double check me on that :D |
Fixes #737 by providing a new bundle
custom-elements-es5-adapter.js
, to be loaded by the user before declaring new Custom Elements@azakus FYI