Skip to main content
Pentaho Documentation

Spec

pentaho.util.Spec

A singleton class that contains utilities related to handling of specification objects.

AMD Module

require(["pentaho/util/spec"], function(Spec) { /* code goes here */ });

Constructor

Name Description
new Spec()

Methods

Name Description
merge(specTarget, specSource) : Object

Merges a specification into another.

Constructor Details

new Spec()

Source: javascript/web/pentaho/util/spec.js, line 35

Methods Details

merge(specTarget, specSource) : Object

Merges a specification into another.

The target specification is modified, but the source specification isn't. The latter is actually deep-cloned, whenever full-subtrees are set at a target place, to prevent future merges from inadvertently changing the source's internal structures.

Source: javascript/web/pentaho/util/spec.js, line 62

Parameters:
Name Default Value Summary
specTarget : Object

The target specification.

specSource : Object

The source specification.

Returns:
Name Description
Object

The target specification.