Skip to content

Commit

Permalink
Merge pull request #5275 from Polymer/force-ce-port-3
Browse files Browse the repository at this point in the history
Fix method to force CE polyfill on in 3.x
  • Loading branch information
dfreedm authored Jun 28, 2018
2 parents 443301d + 84455c9 commit d387a46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions test/unit/shady-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
<head>
<meta charset="utf-8">
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};
Expand Down
5 changes: 2 additions & 3 deletions test/unit/shady-dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
<head>
<meta charset="utf-8">
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};
Expand Down
5 changes: 2 additions & 3 deletions test/unit/shady-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
<html>
<head>
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};
Expand Down

0 comments on commit d387a46

Please sign in to comment.