Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Update polymer build. Fix for custom element definitions not loading …
Browse files Browse the repository at this point in the history
…on dynamic site
  • Loading branch information
ebidel committed Oct 3, 2013
1 parent 1cc246f commit 8088221
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
6 changes: 5 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ function injectPage(url, opt_addToHistory) {
// Run Polymer's HTML Import loader/parser.
HTMLImports.importer.load(newDocContainer, function() {
HTMLImports.parser.parse(newDocContainer);
Platform.flush(); // Needed to prevent FOUC on overlays where O.o() is unavailable.
// CustomElements polyfill needs to process the dynamic imports for definitions.
CustomElements.parser.parse(newDocContainer);

// Prevents polymer-ui-overlay FOUC where O.o() is unavailable.
Platform.flush();
});

var addToHistory = opt_addToHistory == undefined ? true : opt_addToHistory;
Expand Down
10 changes: 5 additions & 5 deletions js/platform.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/platform.min.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions js/polymer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/polymer.min.js.map

Large diffs are not rendered by default.

0 comments on commit 8088221

Please sign in to comment.