Uncaught TypeError: Cannot read property 'push' of undefined
at Cropit.init (jquery.cropit.js:274)
at new Cropit (jquery.cropit.js:194)
at HTMLDivElement. (jquery.cropit.js:102)
at Function.each (app.js?id=79f598946b8ba4ad1fb4:15693)
at jQuery.fn.init.each (app.js?id=79f598946b8ba4ad1fb4:15515)
at jQuery.fn.init.init (jquery.cropit.js:96)
at jQuery.fn.init._jquery2.default.fn.cropit (jquery.cropit.js:147)
at HTMLDocument. (app.js?id=79f598946b8ba4ad1fb4:10447)
at mightThrow (app.js?id=79f598946b8ba4ad1fb4:19074)
at process (app.js?id=79f598946b8ba4ad1fb4:19142)
I get this error :
Uncaught TypeError: Cannot read property 'push' of undefined at Cropit.init (jquery.cropit.js:274) at new Cropit (jquery.cropit.js:194) at HTMLDivElement. (jquery.cropit.js:102)
at Function.each (app.js?id=79f598946b8ba4ad1fb4:15693)
at jQuery.fn.init.each (app.js?id=79f598946b8ba4ad1fb4:15515)
at jQuery.fn.init.init (jquery.cropit.js:96)
at jQuery.fn.init._jquery2.default.fn.cropit (jquery.cropit.js:147)
at HTMLDocument. (app.js?id=79f598946b8ba4ad1fb4:10447)
at mightThrow (app.js?id=79f598946b8ba4ad1fb4:19074)
at process (app.js?id=79f598946b8ba4ad1fb4:19142)
here is the script:
and the html:
how can i fix this