Guest User

Untitled

a guest
Sep 26th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var app = {
  2.     loader: function loader(times, callback) {
  3.         var called = 0
  4.         return function(collection, response) {
  5.             collection.fetched = true
  6.             if (++called < times) return
  7.             callback()
  8.         }
  9.     }
  10. }
Add Comment
Please, Sign In to add comment