Skip to content

Instantly share code, notes, and snippets.

@ColinCampbell
Created November 12, 2010 17:29
Show Gist options
  • Select an option

  • Save ColinCampbell/674393 to your computer and use it in GitHub Desktop.

Select an option

Save ColinCampbell/674393 to your computer and use it in GitHub Desktop.
SC.Page = SC.Page.extend({
init: function() {
sc_super();
var pages = SC.Page.instances;
if (!pages) pages = SC.Page.instances = [];
pages.push(this);
}
});
MyApp = SC.Application.create({
//...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment