Sha256: bae488e846c293bb6e76cf4ad3430ab2d9140c92a2af76a69f11352902639469

Contents?: true

Size: 1.79 KB

Versions: 2

Compression:

Stored size: 1.79 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1372212333.6612391:@value"�{I"
class:EFI"BundledAsset;FI"logical_path;FI"Core/loadBlob.js;TI"
pathname;FI"N/Users/bogumil/www/engines/cesium/app/assets/javascripts/Core/loadBlob.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-06-26T04:04:58+02:00;FI"length;Fi�I"digest;F"%7497092310514a536b6f3baa52f10558I"source;FI"�/*global define*/

define(['Core/loadWithXhr'], function(
        loadWithXhr) {
    "use strict";

    /**
     * Asynchronously loads the given URL as a blob.  Returns a promise that will resolve to
     * a Blob once loaded, or reject if the URL failed to load.  The data is loaded
     * using XMLHttpRequest, which means that in order to make requests to another origin,
     * the server must have Cross-Origin Resource Sharing (CORS) headers enabled.
     *
     * @exports loadBlob
     *
     * @param {String|Promise} url The URL of the data, or a promise for the URL.
     * @param {Object} [headers] HTTP headers to send with the requests.
     *
     * @returns {Promise} a promise that will resolve to the requested data when loaded.
     *
     * @see <a href='http://www.w3.org/TR/cors/'>Cross-Origin Resource Sharing</a>
     * @see <a href='http://wiki.commonjs.org/wiki/Promises/A'>CommonJS Promises/A</a>
     *
     * @example
     * // load a single URL asynchronously
     * loadBlob('some/url').then(function(blob) {
     *     // use the data
     * }, function() {
     *     // an error occurred
     * });
     */
    var loadBlob = function(url, headers) {
        return loadWithXhr(url, 'blob', headers);
    };

    return loadBlob;
});
;FI"required_assets_digest;F"%2c248e0e75225b01fc003790e7eed312I"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cesium-0.23.0 test/dummy/tmp/cache/assets/C76/620/sprockets%2F632c9212c090a66b2278ff03d1037a98
cesium-0.22.0 test/dummy/tmp/cache/assets/C76/620/sprockets%2F632c9212c090a66b2278ff03d1037a98