Skip to content

Commit

Permalink
fix(view): first and last child should not be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 23, 2015
1 parent af290c1 commit 43c076c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view.js
Expand Up @@ -9,8 +9,8 @@ export class View {
this.children = children;
this.systemControlled = systemControlled;
this.contentSelectors = contentSelectors;
this.firstChild = fragment.firstChild;
this.lastChild = fragment.lastChild;
this.firstChild = fragment.firstChild || null;
this.lastChild = fragment.lastChild || null;
this.isBound = false;
this.isAttached = false;
}
Expand Down

0 comments on commit 43c076c

Please sign in to comment.