summaryrefslogtreecommitdiff
path: root/js/cheesesteak.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/cheesesteak.js')
-rw-r--r--js/cheesesteak.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index 31d6086..e090a12 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -196,13 +196,13 @@
function postProgress(e) {
_this.emit('progress', e);
}
- xhr.upload.addEventListener('progress', postProgress);
+ xhr.addEventListener('progress', postProgress);
// Send a success/error response. Nothing more to do.
function uploadFinished(e) {
_this.emit('load', e, xhr.responseText);
}
- xhr.upload.addEventListener('load', uploadFinished);
+ xhr.addEventListener('load', uploadFinished);
xhr.send(data);