Module: $wk$

$wk$

Author:
  • 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 with new Class(1, 2, 3).
Parameters:
Name Type Description
p_constructor function A function to be used as constructor.
p_arguments Array 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_target Object | String An arbitrary object.
p_source Object | String Another arbitrary object (or a path name of an object) the properties of which are to be recursively mixed into p_target.
Source:

<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_name String A package name, i.e. one or more name literals separated by dots.
p_create String <optional>
true Indicates, whether or not to create the package, if it does not exists
Source:
Returns:
The last package object of the package object chain.
Type
Object
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.3.0-dev on Thu Nov 14 2013 13:33:08 GMT+0100 (MEZ) using the DocStrap template.