0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-26 13:49: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) {
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
*/