Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. this.around(function (callback) {
  2. var context = this;
  3. this.load('data/3-products.txt', { json: true, cache: true })
  4. .then(function (items) {
  5. context.items = items;
  6. console.log("loaded: " + JSON.stringify(context.items));
  7. })
  8. .then(callback);
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement