Skip to content

Instantly share code, notes, and snippets.

@jondot
Created February 21, 2013 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jondot/5004412 to your computer and use it in GitHub Desktop.
Save jondot/5004412 to your computer and use it in GitHub Desktop.
App.Group = Ember.Object.extend()
App.Tile = Ember.Object.extend()
App.Surface = Ember.Object.extend()
App.Surface.reopenClass
find: (id)->
App.Surface.create {
groups: [
App.Group.create {
tiles: [
App.Tile.create {
title: "hello",
src: "http://example.com"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment