Confirmed users
502
edits
(→Shim) |
(→Shim) |
||
Line 52: | Line 52: | ||
==== Shim ==== | ==== Shim ==== | ||
Settings app uses shared modules under '''shared/'''. In order to make them able to be loaded using requirejs, we need to declare shims for them. | Settings app uses shared modules under '''shared/'''. In order to make them able to be loaded using requirejs, we need to declare shims for them. With the following shim declared, '''require(shared/lazy_loader);''' actually loads '''shared/lazy_loader.js''' and returns the object '''LazyLoader''' defined in the script. | ||
'shared/lazy_loader': { | 'shared/lazy_loader': { |