summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/cabinet.js4
-rw-r--r--js/cheesesteak.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/js/cabinet.js b/js/cabinet.js
index 2f3a3a6..74a250a 100644
--- a/js/cabinet.js
+++ b/js/cabinet.js
@@ -26,8 +26,8 @@
return (window.FormData !== undefined);
};
- $.fn.cabinet = function(input) {
- input = $(input);
+ $.fn.cabinet = function(uploadInput) {
+ var input = $(uploadInput);
var _this = this;
var passthrough = function(outer, inner, prevent, fn) {
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index ea3dc19..6e5a3ad 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -125,13 +125,13 @@
this.url = url;
this.files = files;
- opts = opts || {};
+ var request = opts || {};
this.opts = merge({
field: 'files[]',
method: 'POST',
data: {}
- }, opts);
+ }, request);
};
FileListUploader.prototype = Object.create(EventEmitter.prototype);