mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
all casper tests fixed weee
This commit is contained in:
parent
5a1953aa25
commit
51220f6cdd
17 changed files with 35 additions and 17 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue