Add unload method on model
This commit is contained in:
parent
ce56c95b5f
commit
003c6e7b01
|
@ -17,6 +17,9 @@ Array.prototype.diff = (a) ->
|
||||||
Ember.merge(data, hash)
|
Ember.merge(data, hash)
|
||||||
@notifyPropertyChange('_data')
|
@notifyPropertyChange('_data')
|
||||||
|
|
||||||
|
unload: ->
|
||||||
|
@constructor.unload(this)
|
||||||
|
|
||||||
dataKey: (key) ->
|
dataKey: (key) ->
|
||||||
meta = @constructor.metaForProperty(key)
|
meta = @constructor.metaForProperty(key)
|
||||||
if meta.isRelationship && !meta.options?.key?
|
if meta.isRelationship && !meta.options?.key?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user