Browse Source

Fix type annotation #134

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

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

@@ -224,7 +224,7 @@ export default class Blob extends EventTarget {
224 224
    * @param  {string} contentType Optional, content type of new Blob object
225 225
    * @return {Blob}
226 226
    */
227
-  slice(start:?number, end:?number, contentType='':?string):Blob {
227
+  slice(start:?number, end:?number, contentType:?string=''):Blob {
228 228
     if(this._closed)
229 229
       throw 'Blob has been released.'
230 230
     log.verbose('slice called', start, end, contentType)