Sha256: 9a8e1ef0b7ff597e6b72cdac664366765d58a670668329330f14afce8b2556af

Contents?: true

Size: 1.74 KB

Versions: 1

Compression:

Stored size: 1.74 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1372843465.5050938:@value"�{I"
class:EFI"BundledAsset;FI"logical_path;FI"%DynamicScene/ConstantProperty.js;TI"
pathname;FI"]/Users/bwrona/www/engines/cesium/app/assets/javascripts/DynamicScene/ConstantProperty.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-07-03T11:02:49+02:00;FI"length;Fi�I"digest;F"%8cdf56f62e9a898451501ef0ef6e228eI"source;FI"�/*global define*/

define(function() {
    "use strict";

    /**
     * Represents a single value which does not change with regard to simulation time.
     *
     * @alias ConstantProperty
     * @constructor
     *
     * @see DynamicProperty
     */
    var ConstantProperty = function(value) {
        this._value = value;
        this._clonable = typeof value !== 'undefined' && typeof value.clone === 'function';
    };

    /**
     * Gets the value of the property, optionally cloning it.
     * @memberof ConstantProperty
     *
     * @param {JulianDate} time The time for which to retrieve the value.  This parameter is unused.
     * @param {Object} [result] The object to store the value into if the value is clonable.  If the result is omitted or the value does not implement clone, the actual value is returned.
     * @returns The modified result parameter or the actual value instance if the value is not clonable.
     */
    ConstantProperty.prototype.getValue = function(time, result) {
        var value = this._value;
        if (this._clonable) {
            return value.clone(result);
        }
        return value;
    };

    return ConstantProperty;
});
;FI"required_assets_digest;F"%642887502ff48f6a21323f02bf8e0519I"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cesium-0.18.0 test/dummy/tmp/cache/assets/D67/2E0/sprockets%2Fc4e056c49456db120d06dea32f57eb7c