Skip to content

Instantly share code, notes, and snippets.

@adjohu
Created January 26, 2012 12:47
Show Gist options
  • Save adjohu/1682619 to your computer and use it in GitHub Desktop.
Save adjohu/1682619 to your computer and use it in GitHub Desktop.
{{#each Editor.elements}}
{{#view Editor.CanvasView elementBinding="this" tagName="div" }}
{{element.content}}
{{/view}}
{{/each}}
Editor.CanvasView = Em.View.extend({
classNames: ['element'],
// Need to link to the current element in the handlebars loop and observe their parameters
abc: function(){
console.log('a');
}.observes('position')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment