Skip to content

Commit 7236cb0

Browse files
author
Stanislav Idolov
authored
ENGCOM-2717: Fix documentation grammar errors and typos in actions.js #17462
2 parents 98caaa4 + 3622378 commit 7236cb0

File tree

1 file changed

+12
-12
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid/columns

1 file changed

+12
-12
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/actions.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ define([
7878
},
7979

8080
/**
81-
* Adds new action. If action with a specfied identifier
82-
* already exists, than the original will be overrided.
81+
* Adds new action. If an action with the specified identifier
82+
* already exists, then the original will be overriden.
8383
*
8484
* @param {String} index - Actions' identifier.
8585
* @param {Object} action - Actions' data.
@@ -108,7 +108,7 @@ define([
108108

109109
/**
110110
* Processes actions, setting additional information to them and
111-
* evaluating ther properties as a string templates.
111+
* evaluating their properties as string templates.
112112
*
113113
* @private
114114
* @param {Object} row - Row object.
@@ -204,11 +204,11 @@ define([
204204
},
205205

206206
/**
207-
* Creates action callback based on its' data. If action doesn't spicify
207+
* Creates action callback based on it's data. If the action doesn't specify
208208
* a callback function than the default one will be used.
209209
*
210210
* @private
211-
* @param {Object} action - Actions' object.
211+
* @param {Object} action - Action's object.
212212
* @returns {Function} Callback function.
213213
*/
214214
_getCallback: function (action) {
@@ -234,7 +234,7 @@ define([
234234
* Creates action callback for multiple actions.
235235
*
236236
* @private
237-
* @param {Object} action - Actions' object.
237+
* @param {Object} action - Action's object.
238238
* @returns {Function} Callback function.
239239
*/
240240
_getCallbacks: function (action) {
@@ -259,12 +259,12 @@ define([
259259

260260
/**
261261
* Default action callback. Redirects to
262-
* the specified in actions' data url.
262+
* the specified in action's data url.
263263
*
264-
* @param {String} actionIndex - Actions' identifier.
265-
* @param {(Number|String)} recordId - Id of the record accociated
266-
* with a specfied action.
267-
* @param {Object} action - Actions' data.
264+
* @param {String} actionIndex - Action's identifier.
265+
* @param {(Number|String)} recordId - Id of the record associated
266+
* with a specified action.
267+
* @param {Object} action - Action's data.
268268
*/
269269
defaultCallback: function (actionIndex, recordId, action) {
270270
window.location.href = action.href;
@@ -273,7 +273,7 @@ define([
273273
/**
274274
* Shows actions' confirmation window.
275275
*
276-
* @param {Object} action - Actions' data.
276+
* @param {Object} action - Action's data.
277277
* @param {Function} callback - Callback that will be
278278
* invoked if action is confirmed.
279279
*/

0 commit comments

Comments
 (0)