Skip to content

Commit b842083

Browse files
author
Mateusz Krzeszowiak
committed
Fix static tests
1 parent 28d1af5 commit b842083

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/web/mage/translate-inline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ define([
88
'mage/template',
99
'mage/utils/misc',
1010
'mage/translate',
11-
'jquery-ui-modules/dialog',
11+
'jquery-ui-modules/dialog'
1212
], function ($, mageTemplate, miscUtils) {
1313
'use strict';
1414

@@ -65,7 +65,7 @@ define([
6565

6666
$uiDialog
6767
.addClass('ui-dialog-active')
68-
.css('margin-top', topMargin)
68+
.css('margin-top', topMargin);
6969
},
7070

7171
/**
@@ -101,7 +101,7 @@ define([
101101
_prepareContent: function (templateData) {
102102
var data = $.extend({
103103
items: templateData,
104-
escape: miscUtils.escape,
104+
escape: miscUtils.escape
105105
}, this.options.translateForm.data);
106106

107107
this.data = data;

lib/web/mage/utils/misc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ define([
244244

245245
/**
246246
* Replaces special characters with their corresponding HTML entities.
247-
*
248-
* @param {String} string Text to escape.
247+
*
248+
* @param {String} string - Text to escape.
249249
* @returns {String} Escaped text.
250250
*/
251251
escape: function (string) {
252-
return string ? $('<p/>').text(str).html().replace(/"/g, '&quot;') : string;
252+
return string ? $('<p/>').text(string).html().replace(/"/g, '&quot;') : string;
253253
},
254254

255255
/**

0 commit comments

Comments
 (0)