0

我想将 aloha.js 文件移出 lib 文件夹。由于这会破坏路径配置,因此我想更改 Aloha.settings 中的 baseUrl:

(function (window, undefined) {
    if (window.Aloha === undefined || window.Aloha === null) {
        window.Aloha = {};
    }
    window.Aloha.settings = {
        baseUrl: '/src/lib/',
        plugins: {
            load: ['common/ui', ' common/format', 'common/image', 'extra/ribbon', 'custom/color', 'custom/imageUpload']
        }
    };
})(window);

baseUrl 设置为 /src/lib/,这是 aloha.js 文件最初所在的位置,因此所有路径都应从中计算。

但是现在我收到以下错误:

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'extendObjects'

并且没有加载任何文件。有任何想法吗?

问候,斯特凡

4

1 回答 1

0

编辑:Aloha 向上转义一个目录。所以当你这样做时

baseUrl: '/src/lib/',

对于插件,它是:

'/src/lib/../',

也许这会有所帮助;)


我认为显示此错误是因为 aloha 正在运行。w jQuery 实例可能存在问题,您是否加载了 1.7.2 以外的其他 jquery?

于 2013-06-19T15:33:08.100 回答