Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As such, for custom JavaScript that executes during BIC initialisation, the following somewhat-cumbersome ritual is required:

Code Block
languagejs
require(['jquery', 'bic'], function ($) {
  $(document).one('pagebeforeload', function () {
    $.when(BMP.BIC.pending.initialize).then(function () {

      /* here your code can safely manipulate the pending queue */

    });
  });
});

Just checking the Promise should be all that is necessary for Interaction-specific and Form Behaviour-specific code:

Code Block
languagejs
$.when(BMP.BIC.pending.initialize).then(function () {

  /* here your Interaction code can safely manipulate the pending queue */

});

Data Model

Whilst the APIs may be used to persist other types of structured data, the only supported data of interest here are records used with our Forms libraries and services.

...