Review main Merged

35635[FEATURE] Allow RequireJS module loading to execute custom code

Benni Mack CR +2 V +2 Easy +13 −5 updated 12/29/14, 22:44

Commit message

When loading RequireJS modules, it is sometimes helpful to
execute custom code or set inline settings coming from the
server side.

A second parameter in the PageRenderer->loadRequireJsModule

allows to work exactly like using the JS code directly for
require([module], function() { customCode(); });

This is used as a basis to allow proper coding of JS changes
like the legacy tree functionality.

See the current Storage API change for an example on how to use
this.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1