Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Make the upgrade order of CustomElements polyfill top down instead of…
Browse files Browse the repository at this point in the history
… bottom up.

Fixes #85
  • Loading branch information
dfreedm committed Dec 9, 2013
1 parent 24fb018 commit 88600aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ if (useNative) {
implement(element, definition);
// flag as upgraded
element.__upgraded__ = true;
// lifecycle management
created(element);
// there should never be a shadow root on element at this point
// we require child nodes be upgraded before `created`
scope.upgradeSubtree(element);
// lifecycle management
created(element);
// OUTPUT
return element;
}
Expand Down

0 comments on commit 88600aa

Please sign in to comment.