Skip to content

Instantly share code, notes, and snippets.

@sgharms
Created May 23, 2012 18:41
Show Gist options
  • Save sgharms/2776984 to your computer and use it in GitHub Desktop.
Save sgharms/2776984 to your computer and use it in GitHub Desktop.
0.9.7:
<script type="text/x-handlebars" data-template-name="template-one">
{{! debugger point 1 }}
{{debugger}}
{{view Ember.View entriesBinding="App.folders.content" templateName="template-two" larryBinding="birdger"}}
</script>
<script type="text/x-handlebars" data-template-name="template-two">
{{! debugger point 2 }}
{{debugger}}
{{#each entries}}
{{view App.FolderDisplayView contentBinding="this"}}
{{/each}}
</script>
1> At debugger point 1 "App.folders.content" returns an array 5 objects in it
2> At debugger point 2 "this.entries" returns an array with 5 objects in it (the same)
3> this.larry is undefined -- because 'birdger' means jack squat
4> this.larryBinding exists
= = = = = = = = = = = = = = = =
0.9.8.1:
<script type="text/x-handlebars" data-template-name="template-one">
{{! debugger point 1 }}
{{debugger}}
{{view Ember.View entriesBinding="App.folders.content" templateName="template-two" larryBinding="birdger"}}
</script>
<script type="text/x-handlebars" data-template-name="template-two">
{{! debugger point 2 }}
{{debugger}}
{{#each entries}}
{{view App.FolderDisplayView contentBinding="this"}}
{{/each}}
</script>
1> At debugger point 1 "App.folders.content" returns an array 5 objects in it
2> At debugger point 2 "this.entries" returns undefined
3> There is a get/set function called 'birdger'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment