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:
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) {
|
||||
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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue