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