deferDefine

deferDefine

Description

Enable this option by setting it to true to allow “two-pass” processing for Profound.js definitions.

Without this option, all definitions are created strictly in sequence. If a definition refers to another that appears later in the code, an error is thrown. For example:

pjs.define("fieldA", { like: "fieldB" }); pjs.define("fieldB", { type: "char", length: 10 });

Here, fieldA references fieldB before fieldB is defined.

When deferDefine is enabled, definition creation is deferred until all definitions have been scanned, which permits code like the example above to run without error.

Example

deferDefine: true

For information on how to modify this setting, see Configuration File.