Add unload method on model

This commit is contained in:
Piotr Sarnacki 2013-08-05 03:21:39 +02:00
parent ce56c95b5f
commit 003c6e7b01

View File

@ -17,6 +17,9 @@ Array.prototype.diff = (a) ->
Ember.merge(data, hash)
@notifyPropertyChange('_data')
unload: ->
@constructor.unload(this)
dataKey: (key) ->
meta = @constructor.metaForProperty(key)
if meta.isRelationship && !meta.options?.key?