angular-slickgrid 5.2.2 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/modules/angular-slickgrid/services/utilities.d.ts +3 -2
- package/esm2020/app/modules/angular-slickgrid/services/utilities.mjs +7 -5
- package/fesm2015/angular-slickgrid.mjs +6 -4
- package/fesm2015/angular-slickgrid.mjs.map +1 -1
- package/fesm2020/angular-slickgrid.mjs +6 -4
- package/fesm2020/angular-slickgrid.mjs.map +1 -1
- package/package.json +12 -12
|
@@ -137,13 +137,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
137
137
|
*/
|
|
138
138
|
function unsubscribeAllObservables(subscriptions) {
|
|
139
139
|
if (Array.isArray(subscriptions)) {
|
|
140
|
-
subscriptions.
|
|
141
|
-
|
|
140
|
+
let subscription = subscriptions.pop();
|
|
141
|
+
while (subscription) {
|
|
142
|
+
if (typeof subscription.unsubscribe === 'function') {
|
|
142
143
|
subscription.unsubscribe();
|
|
143
144
|
}
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
subscription = subscriptions.pop();
|
|
146
|
+
}
|
|
146
147
|
}
|
|
148
|
+
// TODO: deprecated, remove the return type in next major version
|
|
147
149
|
return subscriptions;
|
|
148
150
|
}
|
|
149
151
|
|