Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

To enable the option:

deferDefine: true

  • No labels