From 04d229ebeca53333b1629a3891ea7bb6da8e68d9 Mon Sep 17 00:00:00 2001 From: liabru Date: Tue, 21 Dec 2021 20:10:48 +0000 Subject: [PATCH] deprecated render.controller property --- src/render/Render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/Render.js b/src/render/Render.js index 7888226..9532cd4 100644 --- a/src/render/Render.js +++ b/src/render/Render.js @@ -44,7 +44,6 @@ var Mouse = require('../core/Mouse'); */ Render.create = function(options) { var defaults = { - controller: Render, engine: null, element: null, canvas: null, @@ -116,6 +115,7 @@ var Mouse = require('../core/Mouse'); }; // for temporary back compatibility only + render.controller = Render; render.options.showBroadphase = false; if (render.options.pixelRatio !== 1) { @@ -1525,6 +1525,7 @@ var Mouse = require('../core/Mouse'); /** * A back-reference to the `Matter.Render` module. * + * @deprecated * @property controller * @type render */