From cb3bc4dd3f493b1c1420ce663b8fac04b3f71550 Mon Sep 17 00:00:00 2001 From: dmitri777 Date: Sat, 27 Dec 2014 19:20:46 +0100 Subject: [PATCH] passing URLs in correct way; this solves issue #12 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b108e5..8c93f56 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ Since this is a very common use case, we created this library to simplify it. Ju var remoteImage, container = document.querySelector('.imageContainer'), toLoad = { 'images': [ - 'http://myserver.com/image1.png', - 'http://myserver.com/image2.png' ] }; // list of image URLs + {src: 'http://myserver.com/image1.png'}, + {src: 'http://myserver.com/image2.png'} + ]}; // list of image URLs toLoad.images.forEach(function(imageToLoad) { remoteImage = new RAL.RemoteImage(imageToLoad);