From 50fdeded0b2ae6cf38d0719bfe3da30a73235020 Mon Sep 17 00:00:00 2001 From: WubTheCaptain Date: Sun, 20 Sep 2015 13:20:11 +0000 Subject: Remove commented code about Mozilla's file input This code doesn't seem to be in use nor important. There is no good reason why this was left in here. Because it's not been in use for so long and nobody has an issue with it, let's just remove it. --- js/cheesesteak.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/js/cheesesteak.js b/js/cheesesteak.js index 709d446..47aee93 100644 --- a/js/cheesesteak.js +++ b/js/cheesesteak.js @@ -81,25 +81,6 @@ window.URL.revokeObjectURL(url); }; - // We manipulate this instead of files, because the fucking geniuses at - // Mozilla interpreted the spec to mean that HTMLInputElement.prototype.files - // is read-only. It isn't, read for yourself: - // http://www.w3.org/html/wg/drafts/html/master/forms.html#dom-input-files - //HTMLInputElement.prototype.filelist = Object.create(FileList); - /* - Object.defineProperty(HTMLInputElement.prototype, "filelist", { - get: function getFileList () { - return this.filelist = this._filelist || this.files - }, - set: function (files) { - r - } - })*/ - - /* HTMLInputElement.prototype.addEventListener("change", function (e) { - this.filelist = e.target.files - })*/ - // b gets merged as defaults for a var merge = function merge(base, overlay) { var out = base; -- cgit v1.2.3