【发布时间】:2023-03-12 23:58:01
【问题描述】:
当我使用enableLocking : true 时,在运行应用程序时出现以下错误 -
在浏览器上:
TypeError: mixinClass is undefined
...lass.prototype, prototype = me.prototype, key, statics, i, ln, staticName, mixin...
当我尝试调试时:
mixin: function(name, mixinClass) {
var me = this, mixin = mixinClass.prototype, prototype = me.prototype, key, statics, i, ln, staticName, mixinValue, hookKey, hookFunction;
if (typeof mixin.onClassMixedIn != 'undefined')
{
mixin.onClassMixedIn.call(mixinClass, me);
}
这在 ext-dev 或 ext-dev-all 上完美运行,但是当 Sencha Build 执行并构建合并的 app.js 时会发生错误。
请指导:)
编辑:如果可能,请建议我一些 JS 类,我应该在我的 application.js 文件中添加到 requires[]。
【问题讨论】: