Ember Starter Kit

HTML

<script src="http://builds.emberjs.com/tags/v1.13.5/ember.min.js"></script>

JavaScript

App = Ember.Application.create();

App.TestObj = Ember.Object.extend({
    testProp: [],
    
    init: function() {
        this._super();
        console.log('before init', this.get('testProp'));
        this.get('testProp').pushObject({'test': true});
    },
    
    willDestroy: function() {
        this._super();
        console.log('before destroy', this.get('testProp'));
        this.set('testProp', []);
        console.log('after destroy',this.get('testProp'));
    }
});

var test = App.TestObj.create();
test.destroy();
App.TestObj.create();