Skip to content

Commit

Permalink
Remove all TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Dec 7, 2015
1 parent f356ba8 commit 6467ae1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/template/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@
},

detached: function() {
// TODO(kschaaf): add logic to re-stamp in attached?
if (!this.parentNode) {
this._teardownInstance();
}
},

attached: function() {
if (this.if && this.ctor) {
// TODO(sorvell): should not be async, but node can be attached
// NOTE: ideally should not be async, but node can be attached
// when shady dom is in the act of distributing/composing so push it out
this.async(this._ensureInstance);
}
Expand Down Expand Up @@ -123,10 +122,8 @@
if (parentNode) {
var parent = Polymer.dom(parentNode);
if (!this._instance) {
// TODO(sorvell): pickup stamping logic from x-repeat
this._instance = this.stamp();
var root = this._instance.root;
// TODO(sorvell): this incantation needs to be simpler.
parent.insertBefore(root, this);
} else {
var c$ = this._instance._children;
Expand Down

0 comments on commit 6467ae1

Please sign in to comment.