Skip to content

Commit

Permalink
refactor: one char less noop
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 26, 2017
1 parent 39756cc commit 64c6c9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ function bindCollection ({
// TODO wait to get all data
const array = vm[key] = []
const originalResolve = resolve
// resolve = callOnceWithArg(resolve, () => vm[key])
let isResolved

const change = {
Expand Down Expand Up @@ -115,8 +114,8 @@ function bindCollection ({
if (id in validDocs) {
if (++count >= expectedItems) {
originalResolve(vm[key])
// noop
resolve = () => {}
// reset resolve to noop
resolve = _ => {}
}
}
}
Expand Down

0 comments on commit 64c6c9e

Please sign in to comment.