Skip to content

Commit

Permalink
fixed Window.js - default options are not overridden by jQuery.extend…
Browse files Browse the repository at this point in the history
… function anymore (#1892)
  • Loading branch information
vitek-rostislav authored Jul 9, 2020
1 parent 5eb69e8 commit c85b772
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions assets/js/frontend/utils/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ export default class Window {
constructor (inputOptions) {
this.$activeWindow = null;

this.options = $.extend(
{ textContinue: Translator.trans('Yes'), textCancel: Translator.trans('No') },
defaults,
inputOptions
);
this.options = { textContinue: Translator.trans('Yes'), textCancel: Translator.trans('No'), ...defaults, ...inputOptions };

if (this.$activeWindow !== null) {
this.$activeWindow.trigger('windowFastClose');
Expand Down

0 comments on commit c85b772

Please sign in to comment.