Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created April 29, 2014 04:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/11390673 to your computer and use it in GitHub Desktop.
Save bcardarella/11390673 to your computer and use it in GitHub Desktop.
// instead of this
{
meth1: function() {
...
}.on('init'),
meth2: function() {
...
}.on('init'),
meth3: function() {
...
}.on('init')
}
// do this
{
didInit: function() {
this.meth1();
this.meth2();
this.meth3();
}.on('init')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment