You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/01/09 12:57:09 UTC

[skywalking-client-js] 27/32: fix: name

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git

commit f8da8d26bede2c65732fab36ccd6a0c7a93c703d
Author: Qiuxia Fan <fi...@outlook.com>
AuthorDate: Wed Jan 8 11:53:54 2020 +0800

    fix: name
---
 src/errors/ajax.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/errors/ajax.ts b/src/errors/ajax.ts
index 9727339..6143fe2 100644
--- a/src/errors/ajax.ts
+++ b/src/errors/ajax.ts
@@ -50,9 +50,9 @@ class AjaxErrors extends Base {
         this.addEventListener('load', xhrEvent);
         this.addEventListener('abort', xhrEvent);
       } else {
-        const tempStateChange = this.onreadystatechange;
+        const stateChange = this.onreadystatechange;
         this.onreadystatechange = function(event: any) {
-          tempStateChange.apply(this, arguments);
+          stateChange.apply(this, arguments);
           if (this.readyState === 4) {
             xhrEvent(event);
           }