You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2021. It is now read-only.
* The {{#crossLink "BaseObject"}}{{/crossLink}} class is an abstract class that provides common properties and functionality for all StructureJS classes.
3
+
*
4
+
* @class BaseObject
5
+
* @module StructureJS
6
+
* @submodule core
7
+
* @requires Util
8
+
* @constructor
9
+
* @author Robert S. (www.codeBelt.com)
10
+
*/
11
+
declareclassBaseObject{
12
+
/**
13
+
* The sjsId (StructureJS ID) is a unique identifier automatically assigned to most StructureJS objects upon instantiation.
14
+
*
15
+
* @property sjsId
16
+
* @type {int}
17
+
* @default null
18
+
* @writeOnce
19
+
* @readOnly
20
+
* @public
21
+
*/
22
+
sjsId: number;
23
+
constructor();
24
+
/**
25
+
* Returns the fully qualified class name of an object.
26
+
*
27
+
* @method getQualifiedClassName
28
+
* @returns {string} Returns the class name.
29
+
* @public
30
+
* @example
31
+
* let someClass = new SomeClass();
32
+
* someClass.getQualifiedClassName();
33
+
*
34
+
* // SomeClass
35
+
*/
36
+
getQualifiedClassName(): string;
37
+
/**
38
+
* The purpose of the destroy method is to make an object ready for garbage collection. This
39
+
* should be thought of as a one way function. Once destroy is called no further methods should be
40
+
* called on the object or properties accessed. It is the responsibility of those who implement this
41
+
* function to stop all running Timers, all running Sounds, and take any other steps necessary to make an
42
+
* object eligible for garbage collection.
43
+
*
44
+
* By default the destroy method will null out all properties of the class automatically. You should call destroy
* The {{#crossLink "BaseObject"}}{{/crossLink}} class is an abstract class that provides common properties and functionality for all StructureJS classes.
* The {{#crossLink "ObjectManager"}}{{/crossLink}} class is an abstract class that provides enabling and disabling functionality for most StructureJS classes.
4
+
*
5
+
* @class ObjectManager
6
+
* @module StructureJS
7
+
* @extends BaseObject
8
+
* @submodule core
9
+
* @requires Extend
10
+
* @requires BaseObject
11
+
* @constructor
12
+
* @author Robert S. (www.codeBelt.com)
13
+
*/
14
+
declareclassObjectManagerextendsBaseObject{
15
+
/**
16
+
* The isEnabled property is used to keep track of the enabled state of the object.
17
+
*
18
+
* @property isEnabled
19
+
* @type {boolean}
20
+
* @default false
21
+
* @public
22
+
*/
23
+
isEnabled: boolean;
24
+
constructor();
25
+
/**
26
+
* The enable method is responsible for enabling event listeners and/or children of the containing objects.
* The {{#crossLink "ObjectManager"}}{{/crossLink}} class is an abstract class that provides enabling and disabling functionality for most StructureJS classes.
18
19
*
@@ -28,7 +29,7 @@ var __extends = (this && this.__extends) || function (d, b) {
28
29
varObjectManager=(function(_super){
29
30
__extends(ObjectManager,_super);
30
31
functionObjectManager(){
31
-
_super.call(this);
32
+
var_this=_super.call(this)||this;
32
33
/**
33
34
* The isEnabled property is used to keep track of the enabled state of the object.
34
35
*
@@ -37,7 +38,8 @@ var __extends = (this && this.__extends) || function (d, b) {
37
38
* @default false
38
39
* @public
39
40
*/
40
-
this.isEnabled=false;
41
+
_this.isEnabled=false;
42
+
return_this;
41
43
}
42
44
/**
43
45
* The enable method is responsible for enabling event listeners and/or children of the containing objects.
0 commit comments