Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14689 closed feature (wontfix)

provide registerModulePath for the AMD loader

Reported by: vvoovv Owned by: Rawld Gill
Priority: undecided Milestone: tbd
Component: Loader Version: 1.7.1
Keywords: Cc: ben hockey
Blocked By: Blocking:

Description

registerModulePath is defined in _base/loader.js that is to be deprecated.

It doesn't make sense to load obsolete module and use only 3 lines of its code:

var paths = {};
paths[moduleName.replace(/\./g, "/")] = prefix;
require({paths:paths});

I'd suggest to call it via require:

require.registerModulePath(/*String*/moduleName, /*String*/prefix);

Change History (3)

comment:1 Changed 8 years ago by ben hockey

Cc: ben hockey added

comment:2 Changed 8 years ago by Rawld Gill

Resolution: wontfix
Status: newclosed

registerModulePaths is deprecated too. If you want to use the legacy loader and it's api, then you'll have to load that module.

comment:3 Changed 8 years ago by Maastermedia

Thanks, rcgill. I will soon update it in the refguide: https://github.com/dojo/docs/pull/22

Note: See TracTickets for help on using tickets.