FIXED Ember.js 2013-01-13 with v2.1 router

Based on latest version of Ember.js with the new router. (latest ember build from 2013-01-13) Also including latest master of Ember Data (2013-01-03)

by gazmcghee

HTML

<script src="https://github.com/downloads/wycats/handlebars.js/handlebars-1.0.rc.1.js"></script>
<script src="https://gist.github.com/raw/4520982/c707b0a86a7e3665cd7722aa7013f37d8040f202/ember-latest-20130113.js"></script>
<script src="https://gist.github.com/raw/d484098852f9bdcab242/dbd5bf83dab55c2bf9c8d3606234163b04555f8b/ember-data-20130113.js"></script>
<script type="text/x-handlebars" data-template-name="application">
    <h1> Hello from Ember.js </h1>
  <h2>{{name}}</h2 > <dl> <dt> a </dt>
      <dd>{{a}}</dd> <dt > b </dt>
      <dd>{{b}}</dd> <dt > c </dt>
      <dd>{{c}}</dd> <dt > a / b </dt>
      <dd>{{ab}}</dd> <dt > a / c </dt>
      <dd>{{ac}}</dd> </dl>
</script>

JavaScript

App = Ember.Application.create();
App.ApplicationController = Ember.Controller.extend({
    name: 'Gonzo',
    a: 6,
    b: 2,
    c: 0,
    ab: function () {
        return this.get('a') / this.get('b');
    }.property('a', 'b'),
    ac: function () {
        try {
            throw "error";
        } catch(e) {
            var f = 5 ;                                            
        }
        return 0;
    }.property('a', 'c')
});
App.ApplicationView = Ember.View.extend({
    templateName: 'application'
});