Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scm.QUERY_ALL_PRODUCTS = SC.Query.local(Scm.Product);
- fetch: function(store, query) {
- if (query == Scm.QUERY_ALL_PRODUCTS) {
- SC.Request.getUrl('/products.json').json()
- .notify(this, 'fetchDidComplete', store, query)
- .send()
- return YES;
- }
- },
Add Comment
Please, Sign In to add comment