Skip to content

Instantly share code, notes, and snippets.

@timrwood
Created January 8, 2014 17:10
Show Gist options
  • Select an option

  • Save timrwood/8320391 to your computer and use it in GitHub Desktop.

Select an option

Save timrwood/8320391 to your computer and use it in GitHub Desktop.
App.MyComponent = Ember.Component.extend({
startTimer: function () {
// start timer
}.on( 'didInsertElement' ),
killTimer: function () {
// stop timer
}.on( 'willDestroyElement' )
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment