Source: jaws/Controller.js

import Jaw from "../Jaw";
import { Shark } from "../Shark";

/**
 * The Class to extend to create Controller classes.
 * 
 * @constructor
 * @param {string} jawId - The internal id taht will identify the Controller class.
 * @param {object} jawDefinition - An object with method to assign to this class. <strong>This parameter is deprecated and will be removed. Still exisists for back-compatibility reason.</strong>
 *									The <code>jawDefinition</code> parameter is deprecated and will be removed. Still exisists for back-compatibility reason.
 */
 class Controller extends Jaw {
	constructor (jawId, jawDefinition) {
		super(jawId, jawDefinition);

		Object.defineProperty(this, "type", {
			configurable: false,
			enumerable: true,
			value: "controller",
			writable: false,
		});

		Shark.registerController(this);
	}
}

export default Controller;