From e6b75439f224f908da24f2ebe49492bc5ccc19dc Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Sat, 18 Aug 2018 21:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86Application=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/Application.js | 9 --------- ShadowEditor.Web/src/Options.js | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ShadowEditor.Web/src/Application.js b/ShadowEditor.Web/src/Application.js index d7026c49..a2ccf20d 100644 --- a/ShadowEditor.Web/src/Application.js +++ b/ShadowEditor.Web/src/Application.js @@ -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); diff --git a/ShadowEditor.Web/src/Options.js b/ShadowEditor.Web/src/Options.js index ff9441a6..ea63a9e2 100644 --- a/ShadowEditor.Web/src/Options.js +++ b/ShadowEditor.Web/src/Options.js @@ -4,7 +4,7 @@ */ function Options(options) { options = options || {}; - this.server = options.server || location.origin; + this.server = options.server || location.origin; // 服务端地址 } export default Options; \ No newline at end of file