瀏覽代碼

Fix type annotation #134

Ben Hsieh 8 年之前
父節點
當前提交
c7a667ac01
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/polyfill/Blob.js

+ 1
- 1
src/polyfill/Blob.js 查看文件

@@ -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)