all casper tests fixed weee

This commit is contained in:
Peter Cottle 2015-04-11 12:58:45 -07:00
parent 5a1953aa25
commit 51220f6cdd
17 changed files with 35 additions and 17 deletions

View file

@ -28,6 +28,15 @@ var CommandView = React.createClass({
},
onModelDestroy: function() {
if (!this.isMounted()) {
return;
}
if (!this.getDOMNode) {
// WTF -- only happens in casperjs tests weirdly
console.error('this.getDOMNode not a function?');
return;
}
React.unmountComponentAtNode(this.getDOMNode().parentNode);
},