Skip to content

Commit 33c39da

Browse files
committed
no strict check
1 parent b46e126 commit 33c39da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/imagedata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function ImageData(width, height) {
2-
if (width instanceof ImageData) {
2+
if (width && width instanceof Object) {
33
this.width = width.width;
44
this.height = width.height;
55
this.data = width.data;

0 commit comments

Comments
 (0)