Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Bugfix when calling PNGImage.readImage - scope was missing #20

Merged
merged 1 commit into from
May 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
CHANGELOG
=========

v1.1.0 - 04/21/15
v1.0.11 - 05/26/15
* Bugfix when calling PNGImage.readImage - scope was missing

v1.0.10 - 04/21/15
* Update PNGjs-Image (with additional synchronous behavior)
* Add runSync for synchronous comparison

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,10 +698,10 @@ BlinkDiff.prototype = {
_loadImage: function (path, image) {

if (image instanceof Buffer) {
return Promise.denodeify(PNGImage.loadImage)(image);
return Promise.denodeify(PNGImage.loadImage).call(PNGImage, image);

} else if ((typeof path === 'string') && !image) {
return Promise.denodeify(PNGImage.readImage)(path);
return Promise.denodeify(PNGImage.readImage).call(PNGImage, path);

} else {
return image;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blink-diff",
"version": "1.0.10",
"version": "1.0.11",
"description": "A lightweight image comparison tool",
"license": "MIT",
"main": "index.js",
Expand Down