Browse Source

Merge branch 'issue-288' into 0.10.3

Ben Hsieh 8 years ago
parent
commit
03eb890d58
2 changed files with 5 additions and 6 deletions
  1. 2
    3
      polyfill/Blob.js
  2. 3
    3
      polyfill/Fetch.js

+ 2
- 3
polyfill/Blob.js View File

11
 const log = new Log('Blob')
11
 const log = new Log('Blob')
12
 const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/'
12
 const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/'
13
 
13
 
14
-// log.disable()
15
-log.level(3)
14
+log.disable()
15
+// log.level(3)
16
 
16
 
17
 /**
17
 /**
18
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to
18
  * A RNFetchBlob style Blob polyfill class, this is a Blob which compatible to
342
       return fs.appendFile(...arg)
342
       return fs.appendFile(...arg)
343
     }.bind(args[i]))
343
     }.bind(args[i]))
344
   }
344
   }
345
-  console.log('###ref', ref)
346
   return p.then(() => Promise.resolve(size))
345
   return p.then(() => Promise.resolve(size))
347
 }
346
 }

+ 3
- 3
polyfill/Fetch.js View File

6
 
6
 
7
 const log = new Log('FetchPolyfill')
7
 const log = new Log('FetchPolyfill')
8
 
8
 
9
-// log.disable()
10
-log.level(3)
9
+log.disable()
10
+// log.level(3)
11
 
11
 
12
 export default class Fetch {
12
 export default class Fetch {
13
 
13
 
67
         log.verbose('response', resp)
67
         log.verbose('response', resp)
68
         // release blob cache created when sending request
68
         // release blob cache created when sending request
69
         if(blobCache !== null && blobCache instanceof Blob)
69
         if(blobCache !== null && blobCache instanceof Blob)
70
-          // blobCache.close()
70
+          blobCache.close()
71
         return Promise.resolve(new RNFetchBlobFetchRepsonse(resp))
71
         return Promise.resolve(new RNFetchBlobFetchRepsonse(resp))
72
       })
72
       })
73
 
73