Skip to content

Commit

Permalink
Update custom elements polyfill to latest. (#9840)
Browse files Browse the repository at this point in the history
It seemed Chrome was not using V1 with the version we were using.
  • Loading branch information
cramforce committed Jun 12, 2017
1 parent 76374a8 commit 6b1873b
Show file tree
Hide file tree
Showing 4 changed files with 331 additions and 283 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"prepend-v0": "gulp prepend-global --prod node_modules/AMP_CONFIG.json --local --target dist/v0.js && gulp prepend-global --prod node_modules/AMP_CONFIG.json --local --target dist.3p/current-min/f.js"
},
"dependencies": {
"document-register-element": "1.1.1",
"document-register-element": "1.5.0",
"promise-pjs": "1.1.2",
"web-animations-js": "2.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {getMode} from './mode';
effect in importing the module.
*/
if (!getMode().localDev) {
installCustomElements(self);
installCustomElements(self, 'auto');
}
installDOMTokenListToggle(self);
installMathSign(self);
Expand Down
2 changes: 1 addition & 1 deletion src/service/extensions-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ export function stubLegacyElements(win) {
function installPolyfillsInChildWindow(childWin) {
installDocContains(childWin);
installDOMTokenListToggle(childWin);
installCustomElements(childWin);
installCustomElements(childWin, 'auto');
}


Expand Down
Loading

0 comments on commit 6b1873b

Please sign in to comment.