From 4eb3056da906faabbc9736bd9349cd12dd7e713f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20S=C3=B6derqvist?= Date: Tue, 16 Apr 2019 15:45:41 +0200 Subject: [PATCH] Update README.md Fix spelling of `.dynamic-wrapper` --- plugins/aspectratio/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/aspectratio/README.md b/plugins/aspectratio/README.md index 567e279a..161f98c9 100644 --- a/plugins/aspectratio/README.md +++ b/plugins/aspectratio/README.md @@ -52,14 +52,16 @@ Example values for an image with a width of 400 and a height of 200 (all mean th In case new elements are added to the DOM the global ``imageRatio.processImages`` method can be used. The method takes either an element representing the container/wrapper of the new elements or a list of image elements: ```js -imageRatio.processImages(document.querySelector('#dynaimc-wrapper'); -imageRatio.processImages(document.querySelectorAll('#dynaimc-wrapper img[data-aspectratio]'); +imageRatio.processImages(document.querySelector('#dynamic-wrapper'); +imageRatio.processImages(document.querySelectorAll('#dynamic-wrapper img[data-aspectratio]'); ``` In case jQuery, ZEPTO, shoestring or another jQuery-like library is used the ``imageRatio`` plugin is added also: ```js -$('.dynamic-wrapper').imageRatio(); +$('. + +').imageRatio(); $('.dynamic-wrapper img[data-aspectratio]').imageRatio(); ```