mirror of
https://github.com/danbulant/pngjs
synced 2026-07-07 20:20:45 +00:00
Finished is now optional
This commit is contained in:
parent
735902ff9e
commit
2fbf81e598
2 changed files with 3 additions and 4 deletions
|
|
@ -52,9 +52,6 @@ module.exports = function(buffer, options) {
|
||||||
error: handleError,
|
error: handleError,
|
||||||
metadata: handleMetaData,
|
metadata: handleMetaData,
|
||||||
gamma: handleGamma,
|
gamma: handleGamma,
|
||||||
finished: function() {
|
|
||||||
//todo make optional
|
|
||||||
},
|
|
||||||
inflateData: handleInflateData,
|
inflateData: handleInflateData,
|
||||||
createData: createData
|
createData: createData
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -286,5 +286,7 @@ Parser.prototype._parseIEND = function(data) {
|
||||||
this._hasIEND = true;
|
this._hasIEND = true;
|
||||||
this._handleChunkEnd();
|
this._handleChunkEnd();
|
||||||
|
|
||||||
this.finished();
|
if (this.finished) {
|
||||||
|
this.finished();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue