text stringlengths 0 8.81k |
|---|
b |
* |
Returns: |
Returns the first parameter if not undefined, otherwise the second parameter. |
Example: |
param = Cesium.defaultValue(param, 'default'); |
defined(value) → boolean |
engine/Source/Core/defined.js 14 |
Name |
Type |
Description |
value |
* |
The object. |
Returns: |
Returns true if the object is defined, returns false otherwise. |
Example: |
if (Cesium.defined(positions)) { |
doSomething(); |
} else { |
doSomethingElse(); |
} |
destroyObject(object, message) |
engine/Source/Core/destroyObject.js 35 |
Destroys an object. Each of the object's functions, including functions in its prototype, |
is replaced with a function that throws a DeveloperError, except for the object's |
isDestroyed function, which is set to a function that returns true. |
The object's properties are removed with delete. |
This function is used by objects that hold native resources, e.g., WebGL resources, which |
need to be explicitly released. Client code calls an object's destroy function, |
which then releases the native resource and calls destroyObject to put itself |
in a destroyed state. |
Name |
Type |
Description |
object |
object |
The object to destroy. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.