Skip to content

Commit

Permalink
no strict check
Browse files Browse the repository at this point in the history
  • Loading branch information
webcarrot committed Oct 6, 2016
1 parent b46e126 commit 33c39da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imagedata.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function ImageData(width, height) {
if (width instanceof ImageData) {
if (width && width instanceof Object) {
this.width = width.width;
this.height = width.height;
this.data = width.data;
Expand Down

0 comments on commit 33c39da

Please sign in to comment.