Skip to content

Commit

Permalink
Merge pull request #132 from Sayan751/master
Browse files Browse the repository at this point in the history
fixing possible incorrect merge. #121
  • Loading branch information
EisenbergEffect authored Oct 13, 2016
2 parents ae2fdcc + 6b4d574 commit 606dabb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/injection.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export function autoinject(potentialTarget?: any): any {
const prevIndex = previousInject.indexOf(autoInject[i]);
if (prevIndex > -1) {
previousInject.splice(prevIndex, 1);
previousInject.splice((prevIndex > -1 && prevIndex < i) ? i - 1 : i, 0, autoInject[i]);
} else if (!previousInject[i]) { //else add
previousInject[i] = autoInject[i];
}
previousInject.splice((prevIndex > -1 && prevIndex < i) ? i - 1 : i, 0, autoInject[i]);
} else if (!previousInject[i]) {//else add
previousInject[i] = autoInject[i];
}
}
}
Expand Down

0 comments on commit 606dabb

Please sign in to comment.