Ver código fonte

Add XMLHttpRequest method

Ben Hsieh 8 anos atrás
pai
commit
83b208fb35
1 arquivos alterados com 7 adições e 3 exclusões
  1. 7
    3
      src/polyfill/XMLHttpRequest.js

+ 7
- 3
src/polyfill/XMLHttpRequest.js Ver arquivo

@@ -10,8 +10,8 @@ import ProgressEvent from './ProgressEvent.js'
10 10
 
11 11
 const log = new Log('XMLHttpRequest')
12 12
 
13
-log.disable()
14
-// log.level(3)
13
+// log.disable()
14
+log.level(3)
15 15
 
16 16
 const UNSENT = 0
17 17
 const OPENED = 1
@@ -103,8 +103,8 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
103 103
   }
104 104
 
105 105
   constructor() {
106
-    super()
107 106
     log.verbose('XMLHttpRequest constructor called')
107
+    super()
108 108
   }
109 109
 
110 110
 
@@ -411,4 +411,8 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
411 411
     return this._responseType
412 412
   }
413 413
 
414
+  get isRNFBPolyfill() {
415
+    return true
416
+  }
417
+
414 418
 }