_referenceCache is not a function
This commit is contained in:
parent
5c41529d07
commit
d15b6f851c
|
@ -44,7 +44,7 @@ Travis.SshKeyController = Ember.ObjectController.extend Travis.Validations,
|
|||
|
||||
# because of the bug in ember model reference is not cleared after
|
||||
# deleting the record, so I'm doing it manually here
|
||||
delete @get('model').constructor._referenceCache(parseInt(@get('model.id')))
|
||||
delete @get('model').constructor._referenceCache[parseInt(@get('model.id'))]
|
||||
|
||||
@get('model').deleteRecord().then(deletingDone, deletingDone).then =>
|
||||
@set('model', null)
|
||||
|
|
Loading…
Reference in New Issue
Block a user