Ben Hsieh 8 years ago
parent
commit
ef154e08b8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/polyfill/Blob.js
  2. 1
    1
      src/polyfill/XMLHttpRequest.js

+ 1
- 1
src/polyfill/Blob.js View File

51
   }
51
   }
52
 
52
 
53
   static setLog(level:number) {
53
   static setLog(level:number) {
54
-    if(number === -1)
54
+    if(level === -1)
55
       log.disable()
55
       log.disable()
56
     else
56
     else
57
       log.level(level)
57
       log.level(level)

+ 1
- 1
src/polyfill/XMLHttpRequest.js View File

84
   }
84
   }
85
 
85
 
86
   static setLog(level:number) {
86
   static setLog(level:number) {
87
-    if(number === -1)
87
+    if(level === -1)
88
       log.disable()
88
       log.disable()
89
     else
89
     else
90
       log.level(level)
90
       log.level(level)