diff --git a/src/image/converters.js b/src/image/converters.js index 7b6f1af0..12647edb 100644 --- a/src/image/converters.js +++ b/src/image/converters.js @@ -69,8 +69,8 @@ export function viewFigureToModel() { * * @param {Array.} dispatchers * @param {String} attributeName - * @param {Function} [converter] Custom converter for attribute - default one converts attribute from model to the same - * attribute in the view. + * @param {Function} [converter] Custom converter for the attribute - default one converts attribute from model `image` element + * to the same attribute in `img` in the view. */ export function createImageAttributeConverter( dispatchers, attributeName, converter = modelToViewAttributeConverter ) { for ( const dispatcher of dispatchers ) { @@ -127,7 +127,6 @@ export function responsiveAttributeConverter() { } // Returns model to view image converter converting given attribute, and adding it to `img` element nested inside `figure` element. -// Allows to provide `customConverter` function which if provided will replace 1 to 1 attribute conversion with custom one. // // @private function modelToViewAttributeConverter() {