Simplify subclassing
This commit is contained in:
parent
0e77c0c88a
commit
a2b06b7626
28 changed files with 579 additions and 607 deletions
|
|
@ -49,8 +49,10 @@ if (typeof module !== 'undefined') {
|
|||
* @extends Component
|
||||
* @param {Object} parmsPanel
|
||||
*/
|
||||
function Panel(parmsPanel) {
|
||||
function Panel(parmsPanel)
|
||||
{
|
||||
Component.call(this, "Panel", parmsPanel, Panel);
|
||||
|
||||
this.canvas = null;
|
||||
this.lockMouse = -1;
|
||||
this.fMouseDown = false;
|
||||
|
|
@ -61,7 +63,7 @@ function Panel(parmsPanel) {
|
|||
}
|
||||
}
|
||||
|
||||
Component.subclass(Component, Panel);
|
||||
Component.subclass(Panel);
|
||||
|
||||
/*
|
||||
* The "Live" canvases that we create internally have the following fixed dimensions, to make drawing
|
||||
|
|
|
|||
Loading…
Reference in a new issue