]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 20 Jun 2014 13:11:20 +0000 (13:11 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 20 Jun 2014 13:11:20 +0000 (13:11 +0000)
js/libs/gal/gal.js

index 2f965ac225b7f5a10be32b27e30e0dd74f099df1..2bb040c2b078d713733a145e9e9817d1c147ac4f 100644 (file)
                                                var key = bundle[index];
                                                // Get the full url to the asset.
                                                var url = encodeURI(that.manifest.assetRoot + key);
-                                               // Fetch full url and store it locally.
-                                               that.adapter.saveAsset(key, url, function() {
+
+                                               var cb = function() {
                                                        fireCallback_(that.progress, bundleName, {
                                                                current: index + 1,
                                                                total: bundle.length
                                                        });
                                                        // Iterate to the next file.
                                                        loop(index + 1);
-                                               });
+                                               };
+
+                                               // Fetch full url and store it locally.
+
+                                               that.adapter.saveAsset(key, url, cb, cb);
 
                                        })(0);
                                }