Opened 15 years ago
Closed 15 years ago
#1308 closed defect (invalid)
dojo.registerModulePath delegates to deprecated function
Reported by: | Michael Schall | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
registerModulePath is the replacement for setModulePrefix, however even if you call the correct fuction, you get the deprecated message since the new function just delegates to the old one.
dojo.registerModulePath = function(module, prefix){ return dojo.hostenv.setModulePrefix(module, prefix); } dojo.setModulePrefix = function(module, prefix){ dojo.deprecated("dojo.setModulePrefix", "replaced by dojo.registerModulePath", "0.5"); return dojo.registerModulePath(module, prefix); }
Note: See
TracTickets for help on using
tickets.
Actually, registerModulePath calls dojo.HOSTENV.setModulePrefix. Admittedly this is confusing, but I don't believe it results in any extraneous warnings.
Note that the hostenv version is nominally private.