From 85aec0691ab19aa1f9dcb501c77497fc21765c6c Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Mon, 28 Sep 2015 18:42:04 +0000 Subject: 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. --- js/cheesesteak.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'js/cheesesteak.js') 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); -- cgit v1.2.3