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

Commit

Permalink
Merge pull request #86 from azakus/upgrade-order-top-down
Browse files Browse the repository at this point in the history
Make the upgrade order of CustomElements polyfill top down instead of bottom up.
  • Loading branch information
dfreedm committed Jan 30, 2014
2 parents 35cc03c + 88600aa commit 0939165
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 @@ -224,11 +224,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

1 comment on commit 0939165

@arv
Copy link
Contributor

@arv arv commented on 0939165 Jan 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No test?

Please sign in to comment.