Skip to content

Commit 58136bf

Browse files
authored
Merge pull request #27 from Rhetorical/master
Pass object selector in on change event instead of the object
2 parents 3cf6c3f + d49f1c0 commit 58136bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/pekeUpload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
this.obj.click();
100100
},
101101
handlebuttonevents: function() {
102-
$(document).on("change", this.obj, function() {
102+
$(document).on("change", this.obj.selector, function() {
103103
pekeUpload.checkFile(pekeUpload.obj[0].files[0]);
104104
});
105105
$(document).on('click','.pkdel',function(){

js/pekeUpload.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)