da36c2a0f9
- Maintain http headers as JSON-API meta for all API requests (#4946) - Add EventSource ready for implementing blocking queries - EventSource project implementation to enable blocking queries for service and node listings (#5267) - Add setting to enable/disable blocking queries (#5352)
17 lines
428 B
JavaScript
17 lines
428 B
JavaScript
import Mixin from '@ember/object/mixin';
|
|
|
|
export default Mixin.create({
|
|
reset: function(exiting) {
|
|
if (exiting) {
|
|
Object.keys(this).forEach(prop => {
|
|
if (this[prop] && typeof this[prop].close === 'function') {
|
|
this[prop].close();
|
|
// ember doesn't delete on 'resetController' by default
|
|
delete this[prop];
|
|
}
|
|
});
|
|
}
|
|
return this._super(...arguments);
|
|
},
|
|
});
|