Skip to content

Commit

Permalink
fix: preventing further bugs with older version of lodash and async f…
Browse files Browse the repository at this point in the history
…unctions. Closes #8
  • Loading branch information
noomorph authored and rotemmiz committed Jul 3, 2018
1 parent fdedc97 commit 9739ded
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions detox/src/artifacts/templates/artifact/Artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ class Artifact {
this._discardPromise = null;

if (template) {
if (_.isFunction(template.start)) {
if (typeof template.start === 'function') {
this.doStart = template.start.bind(template);
}
if (_.isFunction(template.stop)) {
if (typeof template.stop === 'function') {
this.doStop = template.stop.bind(template);
}
if (_.isFunction(template.save)) {
if (typeof template.save === 'function') {
this.doSave = template.save.bind(template);
}
if (_.isFunction(template.discard)) {
if (typeof template.discard === 'function') {
this.doDiscard = template.discard.bind(template);
}
}
Expand Down

0 comments on commit 9739ded

Please # to comment.