#34 Add production mode log message about absence of IDE

开启中
nero8 年之前创建 · 0 条评论

Originally at 2015-01-26T18:04:18Z by Hannes Hirzel

From chat

Then, add another parameter to the require([...ide-dialog...], ....) call: function () { console.log("IDE loader not detected. Running in production mode."; } (something like that can be added there by default, in grunt-init-amber) that second callback will be called when the load failed. the first is called when it succeeded. (of course, you can just do nothing in the errback, to ignore that ide loader is not present in total silence) it's up to you what you do, but if you supply second callback, you will handle the error, not requirejs.

Originally at 2015-01-26T18:04:18Z by Hannes Hirzel From chat Then, add another parameter to the require([...ide-dialog...], ....) call: function () { console.log("IDE loader not detected. Running in production mode."; } (something like that can be added there by default, in grunt-init-amber) that second callback will be called when the load failed. the first is called when it succeeded. (of course, you can just do nothing in the errback, to ignore that ide loader is not present in total silence) it's up to you what you do, but if you supply second callback, you will handle the error, not requirejs.
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。