_referenceCache is not a function

This commit is contained in:
Piotr Sarnacki 2014-08-25 15:32:19 +02:00
parent 5c41529d07
commit d15b6f851c

View File

@ -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)