Skip to content

Commit 3d8145f

Browse files
committed
Update dev dependencies.
1 parent 1363486 commit 3d8145f

File tree

4 files changed

+4969
-982
lines changed

4 files changed

+4969
-982
lines changed

js/jquery.fileupload.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -489,15 +489,14 @@
489489
name = String(name);
490490
if (map[name]) {
491491
// eslint-disable-next-line no-param-reassign
492-
name = name.replace(/(?: \(([\d]+)\))?(\.[^.]+)?$/, function (
493-
_,
494-
p1,
495-
p2
496-
) {
497-
var index = p1 ? Number(p1) + 1 : 1;
498-
var ext = p2 || '';
499-
return ' (' + index + ')' + ext;
500-
});
492+
name = name.replace(
493+
/(?: \(([\d]+)\))?(\.[^.]+)?$/,
494+
function (_, p1, p2) {
495+
var index = p1 ? Number(p1) + 1 : 1;
496+
var ext = p2 || '';
497+
return ' (' + index + ')' + ext;
498+
}
499+
);
501500
return this._getUniqueFilename(name, map);
502501
}
503502
map[name] = true;

js/vendor/jquery.ui.widget.js

+6-9
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,8 @@
660660
) {
661661
return;
662662
}
663-
return (typeof handler === 'string'
664-
? instance[handler]
665-
: handler
663+
return (
664+
typeof handler === 'string' ? instance[handler] : handler
666665
).apply(instance, arguments);
667666
}
668667

@@ -699,9 +698,8 @@
699698
_delay: function (handler, delay) {
700699
var instance = this;
701700
function handlerProxy() {
702-
return (typeof handler === 'string'
703-
? instance[handler]
704-
: handler
701+
return (
702+
typeof handler === 'string' ? instance[handler] : handler
705703
).apply(instance, arguments);
706704
}
707705
return setTimeout(handlerProxy, delay || 0);
@@ -737,9 +735,8 @@
737735

738736
data = data || {};
739737
event = $.Event(event);
740-
event.type = (type === this.widgetEventPrefix
741-
? type
742-
: this.widgetEventPrefix + type
738+
event.type = (
739+
type === this.widgetEventPrefix ? type : this.widgetEventPrefix + type
743740
).toLowerCase();
744741

745742
// The original event may come from any element

0 commit comments

Comments
 (0)