Skip to content

Commit

Permalink
Fix #222
Browse files Browse the repository at this point in the history
  • Loading branch information
javve committed May 10, 2015
1 parent 825b2b5 commit 8e898b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = function(list) {
);
};
this.visible = function() {
return (item.elm.parentNode == list.list) ? true : false;
return (item.elm && (item.elm.parentNode == list.list)) ? true : false;
};
init(initValues, element, notCreate);
};
Expand Down

0 comments on commit 8e898b0

Please sign in to comment.