Hi,

Seems a recent update to the trunk has broken dojo.registerModulePath.
Indeed, registering a module path for a module name containing
sub-modules does not work anymore. For example, if I declare this:

var djConfig = {
modulePaths: { "module.subModule":
"../testModulePaths/module/subModule" },
parseOnLoad: true
};

then module.subModule will not be found by a subsequent
dojo.require("module.subModule.A"); call.
Note that if you replace "module.subModule" by "module/subModule",
(that is, slash separator instead of dot), it will work (but then it
will fail on previous dojo versions).

I can send a test case if needed, let me know.

Regards,

--
Patrick

Search Discussions

  • Rawld Gill at Apr 28, 2011 at 6:38 am
    Thanks for the find! fixed in r24536

    Best,
    Rawld
    On Thursday 28 April 2011 03:02:17 Patrick Ruzand wrote:
    Hi,

    Seems a recent update to the trunk has broken dojo.registerModulePath.
    Indeed, registering a module path for a module name containing
    sub-modules does not work anymore. For example, if I declare this:

    var djConfig = {
    modulePaths: { "module.subModule":
    "../testModulePaths/module/subModule" },
    parseOnLoad: true
    };

    then module.subModule will not be found by a subsequent
    dojo.require("module.subModule.A"); call.
    Note that if you replace "module.subModule" by "module/subModule",
    (that is, slash separator instead of dot), it will work (but then it
    will fail on previous dojo versions).

    I can send a test case if needed, let me know.

    Regards,

    --
    Patrick
    _______________________________________________
    dojo-contributors mailing list
    dojo-contributors at mail.dojotoolkit.org
    http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdojo-contributors @
categoriesdojo
postedApr 28, '11 at 6:02a
activeApr 28, '11 at 6:38a
posts2
users2
websitedojotoolkit.org

2 users in discussion

Rawld Gill: 1 post Patrick Ruzand: 1 post

People

Translate

site design / logo © 2022 Grokbase