summaryrefslogtreecommitdiff
path: root/js/cheesesteak.js
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 20:42:04 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 20:51:14 +0200
commit85aec0691ab19aa1f9dcb501c77497fc21765c6c (patch)
treee70a999281f2097d263b79943b7eacabe9989441 /js/cheesesteak.js
parent2751811e56129b14a423e64a6d638ad466268202 (diff)
Remove dead uploadstart emitter startUpload()
The loadstart even is only triggered once to indicate the progress has begun (initialize the progress bar). Essentially, this is dead code for two reasons: 1. It never gets emitted because initProgressBar() gets emitted first. 2. No JavaScript file in pomf core uses the non-standard uploadstart event.
Diffstat (limited to 'js/cheesesteak.js')
-rw-r--r--js/cheesesteak.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index 4b00c3e..31d6086 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -186,11 +186,6 @@
}
xhr.upload.addEventListener('progress', updateProgressBar, false);
- function startUpload(e) {
- _this.emit('uploadstart', e);
- }
- xhr.upload.addEventListener('loadstart', startUpload);
-
// The upload is complete, now tell the user to wait for URLs.
function postUpload(e) {
_this.emit('uploadcomplete', e);