Skip to content

Instantly share code, notes, and snippets.

@villander
Created December 11, 2015 03:35
Show Gist options
  • Select an option

  • Save villander/60b22e25b4f939d8bd1a to your computer and use it in GitHub Desktop.

Select an option

Save villander/60b22e25b4f939d8bd1a to your computer and use it in GitHub Desktop.
// Ember.run.queues
// => ["sync", "actions", "routerTransitions", "render", "afterRender", "destroy"]
/*Ember.run.schedule('actions', this, function() {
console.log('hehehe');
// Do more things
});
Ember.run.schedule('sync', this, function() {
// Do more things
console.log('opa');
});
// I need this to run after transition
Ember.run.scheduleOnce('afterRender', this, function() {
assert.equal(currentPath(), 'conversation', 'profile logged!');
});*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment