Closed zvin closed 6 years ago
Here: https://github.com/jhermsmeier/node-udif/blob/master/lib/image.js#L188 and here: https://github.com/jhermsmeier/node-udif/blob/master/lib/image.js#L222
size doesn't exist, length should be used.
size
length
Also Image is not an event emitter so this.emit('error', error) won't work. It should call the callback with the error instead.
Image
this.emit('error', error)
Good catch, thanks! Fixed in f66b2f75d43c8eb0f335c544a0a98d24dcb5fbfe, and published as udif@0.15.7
udif@0.15.7
Here: https://github.com/jhermsmeier/node-udif/blob/master/lib/image.js#L188 and here: https://github.com/jhermsmeier/node-udif/blob/master/lib/image.js#L222
size
doesn't exist,length
should be used.Also
Image
is not an event emitter sothis.emit('error', error)
won't work. It should call the callback with the error instead.