We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * 判断模块是否完成相应的状态 * * @inner * @param {string} id 模块标识 * @param {number} state 状态码,使用时传入相应的枚举变量,比如MODULE_DEFINED * @return {boolean} 是否完成相应的状态 */ function modIs(id, state) { return modModules[id] && modModules[id].state >= state; }
MODULE_DEFINED
局部require的id没有加入modModules,所以这个方法check失败
The text was updated successfully, but these errors were encountered:
这是by design的,压缩工具有选项不混淆require等关键参数
Gray Zhang
在 2016年9月7日 at 上午10:13:20, huzhongchun (notifications@github.com) 写到:
/** 判断模块是否完成相应的状态 * @inner https://github.com/inner @param https://github.com/param {string} id 模块标识 @param https://github.com/param {number} state 状态码,使用时传入相应的枚举变量,比如 MODULE_DEFINED @return https://github.com/return {boolean} 是否完成相应的状态 */ function modIs(id, state) { return modModules[id] && modModules[id].state >= state; } 局部require的id没有加入modModules,所以这个方法check失败 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub #63, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnCPUUl5CVTia0ApqrRpfgd-LlKWJzBks5qnh3AgaJpZM4J2d4L .
/**
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub #63, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnCPUUl5CVTia0ApqrRpfgd-LlKWJzBks5qnh3AgaJpZM4J2d4L .
Sorry, something went wrong.
AMD 就是这么设计的,看 https://github.com/amdjs/amdjs-api/wiki/AMD#simplified-commonjs-wrapping-
No branches or pull requests
/**
* 判断模块是否完成相应的状态
*
* @inner
* @param {string} id 模块标识
* @param {number} state 状态码,使用时传入相应的枚举变量,比如
MODULE_DEFINED
* @return {boolean} 是否完成相应的状态
*/
function modIs(id, state) {
return modModules[id] && modModules[id].state >= state;
}
局部require的id没有加入modModules,所以这个方法check失败
The text was updated successfully, but these errors were encountered: