Why do you listening to the change event on the document?
$(document).on("change", this.obj, function() { pekeUpload.checkFile(pekeUpload.obj[0].files[0]); });
I have a pekeUpload control and a select2 on the same form, and when i trigger a change event on my select2, i get a
Cannot read property 'size' of undefined
And all starts on this event listening
I think you could use event namespaces, or lintening only on the pekeUpload container
Why do you listening to the change event on the document?
$(document).on("change", this.obj, function() { pekeUpload.checkFile(pekeUpload.obj[0].files[0]); });
I have a pekeUpload control and a select2 on the same form, and when i trigger a change event on my select2, i get aCannot read property 'size' of undefined
And all starts on this event listeningI think you could use event namespaces, or lintening only on the pekeUpload container