jquery-resize
jquery-resize copied to clipboard
Handle 'data' null/undefined
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