Skip to content

Commit

Permalink
Fast check in createdCallback to see if registration has finished.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Mar 17, 2016
1 parent 103f790 commit a3fce19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
},

createdCallback: function() {
this._ensureRegisterFinished(this.__proto__);
if (!this.__hasRegisterFinished) {
this._ensureRegisterFinished(this.__proto__);
}
Polymer.telemetry.instanceCount++;
this.root = this;
this._doBehavior('created'); // abstract
Expand Down

0 comments on commit a3fce19

Please sign in to comment.