38 lines
648 B
JavaScript
38 lines
648 B
JavaScript
/**
|
|
* R3.Controls
|
|
* @constructor
|
|
*/
|
|
R3.Controls = function(
|
|
inherited
|
|
) {
|
|
|
|
__INHERIT_ONLY__
|
|
|
|
this.linkedComponents.canvas = R3.Canvas;
|
|
|
|
__UPGRADE_TO_RUNTIME__;
|
|
|
|
};
|
|
|
|
R3.Controls.prototype = Object.create(R3.Component.prototype);
|
|
R3.Controls.prototype.constructor = R3.Controls;
|
|
|
|
/**
|
|
* R3.Controls.prototype.updateInstance
|
|
* @param property
|
|
*/
|
|
R3.Controls.prototype.updateInstance = function(property) {
|
|
|
|
if (property === 'canvas') {
|
|
R3.Event.Emit(
|
|
R3.Event.CONTROLS_CANVAS_CHANGE,
|
|
{
|
|
component: this
|
|
}
|
|
);
|
|
return;
|
|
}
|
|
|
|
__UPDATE_INSTANCE__;
|
|
};
|