From 1e73cabcf888c7a9963b9839329fd6e87c640f35 Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 16 Jan 2021 23:27:01 +0000 Subject: [PATCH] changed deprecated comments to avoid confusion --- src/core/Engine.js | 6 +++--- src/core/Runner.js | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/Engine.js b/src/core/Engine.js index 644a4d7..3e439a7 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -63,7 +63,7 @@ var Body = require('../body/Body'); var engine = Common.extend(defaults, options); - // @deprecated + // back compatibility if (element || engine.render) { var renderDefaults = { element: element, @@ -73,12 +73,12 @@ var Body = require('../body/Body'); engine.render = Common.extend(renderDefaults, engine.render); } - // @deprecated + // back compatibility if (engine.render && engine.render.controller) { engine.render = engine.render.controller.create(engine.render); } - // @deprecated + // back compatibility if (engine.render) { engine.render.engine = engine; } diff --git a/src/core/Runner.js b/src/core/Runner.js index 21274be..7b6555f 100644 --- a/src/core/Runner.js +++ b/src/core/Runner.js @@ -119,7 +119,7 @@ var Common = require('./Common'); }; Events.trigger(runner, 'beforeTick', event); - Events.trigger(engine, 'beforeTick', event); // @deprecated + Events.trigger(engine, 'beforeTick', event); // back compatibility if (runner.isFixed) { // fixed timestep @@ -164,14 +164,14 @@ var Common = require('./Common'); } Events.trigger(runner, 'tick', event); - Events.trigger(engine, 'tick', event); // @deprecated + Events.trigger(engine, 'tick', event); // back compatibility // if world has been modified, clear the render scene graph if (engine.world.isModified && engine.render && engine.render.controller && engine.render.controller.clear) { - engine.render.controller.clear(engine.render); // @deprecated + engine.render.controller.clear(engine.render); // back compatibility } // update @@ -180,19 +180,19 @@ var Common = require('./Common'); Events.trigger(runner, 'afterUpdate', event); // render - // @deprecated + // back compatibility if (engine.render && engine.render.controller) { Events.trigger(runner, 'beforeRender', event); - Events.trigger(engine, 'beforeRender', event); // @deprecated + Events.trigger(engine, 'beforeRender', event); // back compatibility engine.render.controller.world(engine.render); Events.trigger(runner, 'afterRender', event); - Events.trigger(engine, 'afterRender', event); // @deprecated + Events.trigger(engine, 'afterRender', event); // back compatibility } Events.trigger(runner, 'afterTick', event); - Events.trigger(engine, 'afterTick', event); // @deprecated + Events.trigger(engine, 'afterTick', event); // back compatibility }; /**