|
|
@@ -116,14 +116,14 @@ class AnalyticsAdapter {
|
|
116
|
116
|
dispose() {
|
|
117
|
117
|
logger.warn('Disposing of analytics adapter.');
|
|
118
|
118
|
|
|
119
|
|
- if (this.analyticsHandlers && this.analyticsHandlers.length > 0) {
|
|
|
119
|
+ if (this.analyticsHandlers && this.analyticsHandlers.size > 0) {
|
|
120
|
120
|
this.analyticsHandlers.forEach(handler => {
|
|
121
|
121
|
if ( typeof handler.dispose === 'function' ) {
|
|
122
|
122
|
handler.dispose();
|
|
123
|
123
|
}
|
|
124
|
124
|
});
|
|
125
|
125
|
}
|
|
126
|
|
-
|
|
|
126
|
+
|
|
127
|
127
|
this.setAnalyticsHandlers([]);
|
|
128
|
128
|
this.disposed = true;
|
|
129
|
129
|
}
|