清理Application。

This commit is contained in:
liteng 2018-08-18 21:05:50 +08:00
parent 5748be5044
commit e6b75439f2
2 changed files with 1 additions and 10 deletions

View File

@ -66,16 +66,9 @@ function Application(container, options) {
// 物理引擎
this.physics = new Physics(params);
this.running = false;
// 是否从文件中加载场景从文件中加载场景的url格式是index.html#file=xxx
this.isLoadingFromHash = false;
}
Application.prototype.start = function () {
this.running = true;
// 启动事件 - 事件要在ui创建完成后启动
this.event.start();
@ -89,8 +82,6 @@ Application.prototype.start = function () {
};
Application.prototype.stop = function () {
this.running = false;
this.call('appStop', this);
this.call('appStoped', this);

View File

@ -4,7 +4,7 @@
*/
function Options(options) {
options = options || {};
this.server = options.server || location.origin;
this.server = options.server || location.origin; // 服务端地址
}
export default Options;