1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00

Prevent ember actions on destroyed objects

This commit is contained in:
Harvey Kandola 2018-05-02 14:53:26 +01:00
parent 455a384eb0
commit fb8adc6491

View file

@ -54,6 +54,7 @@ export default Component.extend(ModalMixin, {
type: 'GET',
dataType: 'html',
success: function (response) {
if (self.get('isDestroyed') || self.get('isDestroying')) return;
self.set('newsContent', response);
}
});