0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-27 13:59:01 -05:00

deprecated render.controller property

This commit is contained in:
liabru 2021-12-21 20:10:48 +00:00
parent e41446493c
commit 04d229ebec

View file

@ -44,7 +44,6 @@ var Mouse = require('../core/Mouse');
*/ */
Render.create = function(options) { Render.create = function(options) {
var defaults = { var defaults = {
controller: Render,
engine: null, engine: null,
element: null, element: null,
canvas: null, canvas: null,
@ -116,6 +115,7 @@ var Mouse = require('../core/Mouse');
}; };
// for temporary back compatibility only // for temporary back compatibility only
render.controller = Render;
render.options.showBroadphase = false; render.options.showBroadphase = false;
if (render.options.pixelRatio !== 1) { if (render.options.pixelRatio !== 1) {
@ -1525,6 +1525,7 @@ var Mouse = require('../core/Mouse');
/** /**
* A back-reference to the `Matter.Render` module. * A back-reference to the `Matter.Render` module.
* *
* @deprecated
* @property controller * @property controller
* @type render * @type render
*/ */