- Copyright:
- 2013, Wolfgang Kowarschick
Redistribution and use in source and binary forms, with or without modification, are permitted under the terms of the Creative Commons License Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/).
- 2013, Wolfgang Kowarschick
- Source:
Methods
-
<static> $new$(p_constructor, p_arguments) → {Object}
-
An object created by calling
$new$(Class, [1, 2, 3])is identical to an object created withnew Class(1, 2, 3).Parameters:
Name Type Description p_constructorfunction A function to be used as constructor. p_argumentsArray An array of arguments to be passed to the constructor - Source:
- See:
Returns:
The newly constructed object.- Type
- Object
-
<static> mixin(p_target, p_source)
-
Recursively mixes properties of a source object into a target object. Overridable properties are overridden, others not.
Parameters:
Name Type Description p_targetObject | String An arbitrary object. p_sourceObject | String Another arbitrary object (or a path name of an object) the properties of which are to be recursively mixed into p_target. -
<static> pkg(p_name, p_create) → {Object}
-
Creates a chain of nested objects.
For instance: The following function call
$wk$.pkg("ldvcs.view");results in the creation of two objects (if they do not already exist):ldvcs ldvcs.view
Parameters:
Name Type Argument Default Description p_nameString A package name, i.e. one or more name literals separated by dots. p_createString <optional>
true Indicates, whether or not to create the package, if it does not exists Returns:
The last package object of the package object chain.- Type
- Object