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:
parent
e41446493c
commit
04d229ebec
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue