Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Chain to existing outstanding requests

Mike McGann19feaf2b9302
diff --git a/src/js/util/wv.util.load.js b/src/js/util/wv.util.load.js
index 8a7b749b0..2f9dc477f 100644
--- a/src/js/util/wv.util.load.js
+++ b/src/js/util/wv.util.load.js
@@ -21,9 +21,9 @@ wv.util.load = wv.util.load || (function() {
self.config = function(root, attr, url) {
promise = $.Deferred();
- // If a request is already outstanding, "ignore" it by returning
- // a promise that will never be fulfilled.
+ // If a request is already outstanding, chain to that one
if ( configPromises[url]) {
+ configPromises[url].done(promise.resolve).fail(promise.reject);
return promise;
}
if ( root[attr] && _.size(root[attr]) > 0 ) {