Sha256: 185365fe3c506fe2a189afb64246057517a0355cc015e3660db811107c093748

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1372843465.24179:@value"m{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"Core/wrapFunction.js;TI"
pathname;FI"Q/Users/bwrona/www/engines/cesium/app/assets/javascripts/Core/wrapFunction.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-07-03T11:02:49+02:00;FI"length;Fi\I"digest;F"%c66c31bc33adc0c237564f9476edb9b6I"source;FI"\/*global define*/

define(['./DeveloperError'
        ],
        function(DeveloperError) {
    "use strict";

    /**
     * Wraps a function on the provided objects with another function called in the
     * object's context so that the new function is always called immediately
     * before the old one.
     *
     * @private
     */
    var wrapFunction = function(obj, oldFunction, newFunction) {
        if (typeof oldFunction !== 'function') {
            throw new DeveloperError("oldFunction is required to be a function.");
        }

        if (typeof newFunction !== 'function') {
            throw new DeveloperError("oldFunction is required to be a function.");
        }

        return function() {
            newFunction.apply(obj, arguments);
            oldFunction.apply(obj, arguments);
        };
    };

    return wrapFunction;
});
;FI"dependency_digest;F"%e36a87ace8e1ebf39d1a791f32cac995I"required_paths;F[I"Q/Users/bwrona/www/engines/cesium/app/assets/javascripts/Core/wrapFunction.js;TI"dependency_paths;F[{I"	path;FI"Q/Users/bwrona/www/engines/cesium/app/assets/javascripts/Core/wrapFunction.js;TI"
mtime;FI"2013-07-03T11:02:49+02:00;FI"digest;F"%e5a1bcd87cc691e26034e289700852aaI"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cesium-0.18.0 test/dummy/tmp/cache/assets/C5F/DF0/sprockets%2Fc94fc1f438a14751408f6c0982677429