Handle 'data' null/undefined
thellvig opened this issue · comments
thellvig commented
Hi, I believe a check for data being null/undefined would improve on your code.
I would like to change line 258 [ if (width !== data.w || height !== data.h) ]
to [ if (data && (width !== data.w || height !== data.h)) ] in the source.
Yours truly