xushiting 3 years ago
parent
commit
d78ff35861
1 changed files with 8 additions and 7 deletions
  1. 8 7
      src/Reporter.js

+ 8 - 7
src/Reporter.js

@@ -1,13 +1,13 @@
 export default class Reporter extends EventEmitter {
 export default class Reporter extends EventEmitter {
     constructor() {
     constructor() {
         super();
         super();
-        E(this, "_header", {});
-        E(this, "_body", {});
-        E(this, "_queue", []);
-        E(this, "_disabled", !1);
-        E(this, "_interval", null);
-        E(this, "_reportUrl");
-        E(this, "isDocumentLoaded", ()=>document.readyState === "complete");
+        this_header= {}
+        this_body= {}
+        this_queue= []
+        this_disabled= !1
+        this_interval= null
+        this_reportUrl= null
+        this.isDocumentLoaded =()=>document.readyState === "complete");
         this._header.logModuleId = REPORT_MODULE_TYPE,
         this._header.logModuleId = REPORT_MODULE_TYPE,
         this._header.url = location.href,
         this._header.url = location.href,
         this._header.enviroment = ENV,
         this._header.enviroment = ENV,
@@ -17,6 +17,7 @@ export default class Reporter extends EventEmitter {
         }
         }
         , 10 * 1e3)
         , 10 * 1e3)
     }
     }
+    
     disable() {
     disable() {
         this._disabled = !0,
         this._disabled = !0,
         this._interval && window.clearInterval(this._interval)
         this._interval && window.clearInterval(this._interval)