We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea33a26 + aab236e commit 8959777Copy full SHA for 8959777
jquery.html5_upload.js
@@ -216,11 +216,12 @@
216
if (options.autostart) {
217
$(this).bind('change', upload);
218
}
219
- for (event in available_events) {
+ var self = this;
220
+ $.each(available_events, function(event) {
221
if (options[available_events[event]]) {
- $(this).bind("html5_upload."+available_events[event], options[available_events[event]]);
222
+ $(self).bind("html5_upload."+available_events[event], options[available_events[event]]);
223
- }
224
+ });
225
$(this)
226
.bind('html5_upload.start', upload)
227
.bind('html5_upload.cancelOne', function() {
0 commit comments