Update ExpandableRecordArray to work correctly with Ember Model
This commit is contained in:
parent
f92c592f2d
commit
f271622758
|
@ -1,4 +1,4 @@
|
||||||
Travis.ExpandableRecordArray = DS.RecordArray.extend
|
Travis.ExpandableRecordArray = Ember.RecordArray.extend
|
||||||
isLoaded: false
|
isLoaded: false
|
||||||
isLoading: false
|
isLoading: false
|
||||||
|
|
||||||
|
@ -33,9 +33,4 @@ Travis.ExpandableRecordArray = DS.RecordArray.extend
|
||||||
@pushObject object
|
@pushObject object
|
||||||
|
|
||||||
pushObject: (record) ->
|
pushObject: (record) ->
|
||||||
content = @get 'content'
|
@get('content').pushObject(record)
|
||||||
id = record.get 'id'
|
|
||||||
clientId = record.get 'clientId'
|
|
||||||
reference = @get('store').referenceForClientId(clientId)
|
|
||||||
|
|
||||||
@addReference reference
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user