Add google maps test

This commit is contained in:
Niklas von Hertzen
2014-09-27 20:20:08 +03:00
parent fa659ad1df
commit 1e19832171
5 changed files with 52 additions and 7 deletions

View File

@ -114,8 +114,8 @@ ImageLoader.prototype.fetch = function(nodes) {
this.images.forEach(function(image, index) {
image.promise.then(function() {
log("Succesfully loaded image #"+ (index+1));
}, function() {
log("Failed loading image #"+ (index+1));
}, function(e) {
log("Failed loading image #"+ (index+1), e);
});
});
this.ready = Promise.all(this.images.map(this.getPromise));