Skip to content

Commit 1930b45

Browse files
Yahor ChaptsouYahor Chaptsou
authored andcommitted
[SITES-41317] improve v1 cflist component performance
1 parent 95bf36a commit 1930b45

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • content/src/content/jcr_root/apps/core/wcm/components/contentfragmentlist/v1/contentfragmentlist/clientlibs/editor/js

content/src/content/jcr_root/apps/core/wcm/components/contentfragmentlist/v1/contentfragmentlist/clientlibs/editor/js/contentfragmentlist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
/**
3030
* @param {String} path - resource path or URL as stored on the dialog field (cmp-field-path)
31-
* @returns {Boolean} true if resolving the path yields a same-origin URL suitable for datasource requests
31+
* @returns {Boolean} true if the path resolves to a URL on the current page origin
3232
*/
3333
function isSameOriginDatasourcePath(path) {
3434
if (path === undefined || path === null) {
@@ -52,7 +52,7 @@
5252
}
5353

5454
/**
55-
* Parses HTML returned by a trusted same-origin datasource.
55+
* Parses HTML from a datasource response.
5656
*
5757
* @param {String} html - response body
5858
* @returns {Document} parsed document
@@ -62,10 +62,10 @@
6262
}
6363

6464
/**
65-
* Extracts inner markup to mirror prior jQuery(html)[0].innerHTML behavior for a single root under body.
65+
* Returns the inner HTML of the first child of the parsed document body.
6666
*
6767
* @param {String} html - response body
68-
* @returns {String} HTML to assign to the element names container
68+
* @returns {String} markup for the element names container
6969
*/
7070
function getInnerHtmlFromDatasourceResponse(html) {
7171
var doc = parseDatasourceDocument(html);
@@ -275,7 +275,7 @@
275275
/**
276276
* Replaces the html of orderBy select item.
277277
*
278-
* @param {Element} orderByNode - coral-select markup for orderBy from a parsed datasource response
278+
* @param {Element} orderByNode - coral-select element to insert
279279
*/
280280
ContentFragmentListController.prototype._updateOrderByHTML = function(orderByNode) {
281281
if (!orderByNode) {

0 commit comments

Comments
 (0)