Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

passing URLs in correct way; this solves issue #12 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down