Opened 13 years ago

Closed 13 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);
}

Change History (1)

comment:1 Changed 13 years ago by sjmiles

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.