mirror of
https://github.com/danbulant/pngjs
synced 2026-06-20 06:51:46 +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,
|
||||
metadata: handleMetaData,
|
||||
gamma: handleGamma,
|
||||
finished: function() {
|
||||
//todo make optional
|
||||
},
|
||||
inflateData: handleInflateData,
|
||||
createData: createData
|
||||
});
|
||||
|
|
|
|||
|
|
@ -286,5 +286,7 @@ Parser.prototype._parseIEND = function(data) {
|
|||
this._hasIEND = true;
|
||||
this._handleChunkEnd();
|
||||
|
||||
this.finished();
|
||||
if (this.finished) {
|
||||
this.finished();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue