Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js b/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js |
| index e40ccf40ca2caa2770506e41ab652b34163f0ec1..2cb4021fff243675b4c143966e3c9567078adafd 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js |
| @@ -233,7 +233,7 @@ WebInspector.TempFile.prototype = { |
| */ |
| WebInspector.DeferredTempFile = function(dirPath, name) |
| { |
| - /** @type {!Array.<!{strings: !Array.<string>, callback: function(number)}>} */ |
| + /** @type {!Array.<!{strings: !Array.<string>, callback: (function(number)|undefined)}>} */ |
|
lushnikov
2016/03/04 05:06:58
null
kozy
2016/03/04 06:13:29
Done.
|
| this._chunks = []; |
| this._tempFile = null; |
| this._isWriting = false; |
| @@ -301,7 +301,7 @@ WebInspector.DeferredTempFile.prototype = { |
| return; |
| var chunk = this._chunks.shift(); |
| this._isWriting = true; |
| - this._tempFile.write(/** @type {!Array.<string>} */(chunk.strings), this._didWriteChunk.bind(this, chunk.callback)); |
| + this._tempFile.write(/** @type {!Array.<string>} */(chunk.strings), this._didWriteChunk.bind(this, chunk.callback || null)); |
| }, |
| /** |