Browse Source

Add XMLHttpRequest method

Ben Hsieh 8 years ago
parent
commit
83b208fb35
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      src/polyfill/XMLHttpRequest.js

+ 7
- 3
src/polyfill/XMLHttpRequest.js View File

10
 
10
 
11
 const log = new Log('XMLHttpRequest')
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
 const UNSENT = 0
16
 const UNSENT = 0
17
 const OPENED = 1
17
 const OPENED = 1
103
   }
103
   }
104
 
104
 
105
   constructor() {
105
   constructor() {
106
-    super()
107
     log.verbose('XMLHttpRequest constructor called')
106
     log.verbose('XMLHttpRequest constructor called')
107
+    super()
108
   }
108
   }
109
 
109
 
110
 
110
 
411
     return this._responseType
411
     return this._responseType
412
   }
412
   }
413
 
413
 
414
+  get isRNFBPolyfill() {
415
+    return true
416
+  }
417
+
414
 }
418
 }