deferDefine

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 will be 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. This permits code like the example above to execute without error.

Enable this option as follows:

deferDefine: true

Â