diff options
| author | WubTheCaptain <wub@partyvan.eu> | 2015-09-20 15:20:11 +0200 |
|---|---|---|
| committer | WubTheCaptain <wub@partyvan.eu> | 2015-09-20 15:23:23 +0200 |
| commit | 50fdeded0b2ae6cf38d0719bfe3da30a73235020 (patch) | |
| tree | a9bf06bdd038f141deb207df4ca82dae663b66c5 | |
| parent | 77d36062d062d5f8e8c56e957045ea66ef354c52 (diff) | |
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.
| -rw-r--r-- | js/cheesesteak.js | 19 |
1 files changed, 0 insertions, 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; |
