Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- store.find('post', 1).then(function(obj) {
- function refreshInOneSecon(obj) {
- Ember.run.later(function() {
- obj.reload().then(refreshInOneSecon, dontRefresh);
- }, 1000);
- }
- function dontRefresh(err) {
- console.log('an error', err);
- }
- refreshInOneSecon(obj);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement