Skip to content

Commit

Permalink
deprecated render.controller property
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 21, 2021
1 parent e414464 commit 04d229e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var Mouse = require('../core/Mouse');
*/
Render.create = function(options) {
var defaults = {
controller: Render,
engine: null,
element: null,
canvas: null,
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -1525,6 +1525,7 @@ var Mouse = require('../core/Mouse');
/**
* A back-reference to the `Matter.Render` module.
*
* @deprecated
* @property controller
* @type render
*/
Expand Down

0 comments on commit 04d229e

Please sign in to comment.