Browse Source

feat(AnalyticsAdapter): Add reset functionality.

dev1
Hristo Terezov 6 years ago
parent
commit
23658b601b
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      modules/statistics/AnalyticsAdapter.js

+ 9
- 0
modules/statistics/AnalyticsAdapter.js View File

@@ -60,6 +60,15 @@ class AnalyticsAdapter {
60 60
      * Creates new AnalyticsAdapter instance.
61 61
      */
62 62
     constructor() {
63
+        this.reset();
64
+    }
65
+
66
+    /**
67
+     * Reset the state to the initial one.
68
+     *
69
+     * @returns {void}
70
+     */
71
+    reset() {
63 72
         /**
64 73
          * Whether this AnalyticsAdapter has been disposed of or not. Once this
65 74
          * is set to true, the AnalyticsAdapter is disabled and does not accept

Loading…
Cancel
Save