We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32f6f23 commit de88b48Copy full SHA for de88b48
addon/mixins/csp-style.js
@@ -99,6 +99,18 @@ export default Ember.Mixin.create({
99
this._refreshBindings();
100
}),
101
102
+ doCleanup: Ember.on('willDestroyElement', function() {
103
+ var observers = this.get('_styleObservers') || {};
104
+ // remove all bindings
105
+ for(var property in observers) {
106
+ if (observers.hasOwnProperty(property)) {
107
+ observers[property].stop();
108
+ delete observers[property];
109
+ }
110
111
+ this.set('_styleObservers', {});
112
+ }),
113
+
114
_refreshBindings: function() {
115
116
var hashCode = function(s){
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "ember-cli-csp-style",
3
- "version": "1.13.9",
+ "version": "1.13.10",
4
"description": "",
5
"directories": {
6
"doc": "doc",
0 commit comments