diff --git a/dist/r3.js b/dist/r3.js index bf46641..6cb5e3e 100644 --- a/dist/r3.js +++ b/dist/r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '2.0.511'; - static compileDate = '2021 Sep 10 - 09:57:53 am'; + static version = '2.0.520'; + static compileDate = '2021 Sep 10 - 10:57:46 am'; } class Entity { @@ -22,7 +22,7 @@ class Entity { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -30,15 +30,16 @@ class Entity { } /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.OBJECT_INITIALIZED, this); @@ -91,7 +92,7 @@ class Event { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -105,15 +106,16 @@ class Event { static Subscriptions = {}; /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.EVENT_INITIALIZED, this); @@ -420,7 +422,7 @@ class Utils { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -1658,15 +1660,16 @@ class Utils { }; /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } } @@ -1688,7 +1691,7 @@ class Utils { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized Inherited Static Methods: @@ -1723,6 +1726,10 @@ class EntitySlider extends Entity { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -1734,7 +1741,7 @@ class EntitySlider extends Entity { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -2351,6 +2358,11 @@ class SystemRuntime extends System { */ static Start(options) { + SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe( + Event.GET_RUNTIME, + SystemRuntime.OnGetRuntime + ); + SystemRuntime.Started = true; console.log('Started system: SystemRuntime'); @@ -2364,12 +2376,25 @@ class SystemRuntime extends System { */ static Stop(options) { + SystemRuntime.Subscriptions['GET_RUNTIME'].remove(); + delete SystemRuntime.Subscriptions['GET_RUNTIME']; + SystemRuntime.Started = false; console.log('Stopped system: SystemRuntime'); } + /** + * OnGetRuntime() + * - Listens to events of type Event.GET_RUNTIME and executes this function. + * @param object (The event data passed as argument - typically an R3Object) + * @return null + */ + static OnGetRuntime(object) { + + } + } SystemRuntime.Started = false; @@ -2484,7 +2509,7 @@ SystemSocket.Subscriptions = {}; Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -2539,6 +2564,10 @@ class Runtime extends Event { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -2550,7 +2579,7 @@ class Runtime extends Event { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -2589,7 +2618,7 @@ Runtime.MAX_RUNTIME = 0xd; Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -2630,8 +2659,8 @@ Runtime.MAX_RUNTIME = 0xd; Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Static Methods: @@ -2647,6 +2676,10 @@ class R3Object extends Event { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -2670,7 +2703,7 @@ class R3Object extends Event { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -2678,15 +2711,16 @@ class R3Object extends Event { } /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.OBJECT_INITIALIZED, this); @@ -2710,7 +2744,7 @@ class R3Object extends Event { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -2783,6 +2817,10 @@ class RuntimeCoder extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -2794,7 +2832,7 @@ class RuntimeCoder extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -2818,7 +2856,7 @@ class RuntimeCoder extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -2891,6 +2929,10 @@ class RuntimeDefault extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -2902,7 +2944,7 @@ class RuntimeDefault extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -2926,7 +2968,7 @@ class RuntimeDefault extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -2999,6 +3041,10 @@ class RuntimeGUI extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3010,7 +3056,7 @@ class RuntimeGUI extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3034,7 +3080,7 @@ class RuntimeGUI extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3107,6 +3153,10 @@ class RuntimeGraphics extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3118,7 +3168,7 @@ class RuntimeGraphics extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3142,7 +3192,7 @@ class RuntimeGraphics extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3215,6 +3265,10 @@ class RuntimePhysics extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3226,7 +3280,7 @@ class RuntimePhysics extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3250,7 +3304,7 @@ class RuntimePhysics extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3323,6 +3377,10 @@ class RuntimeSocket extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3334,7 +3392,7 @@ class RuntimeSocket extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3358,7 +3416,7 @@ class RuntimeSocket extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3431,6 +3489,10 @@ class RuntimeStatistics extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3442,7 +3504,7 @@ class RuntimeStatistics extends Runtime { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3466,7 +3528,7 @@ class RuntimeStatistics extends Runtime { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3507,8 +3569,8 @@ class RuntimeStatistics extends Runtime { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -3526,7 +3588,7 @@ class RuntimeStatistics extends Runtime { Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -3541,8 +3603,8 @@ class RuntimeStatistics extends Runtime { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Static Methods: @@ -3558,6 +3620,10 @@ class Component extends R3Object { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3569,7 +3635,7 @@ class Component extends R3Object { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3578,15 +3644,16 @@ class Component extends R3Object { } /** - * initialized() + * initialize() * - Should raises an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.OBJECT_INITIALIZED, this); @@ -3602,11 +3669,10 @@ class Component extends R3Object { this.emit(Event.CREATE_INSTANCE_BEFORE, this); - this.getRuntime().createInstance( - this, - { - } - ) + this.setRuntime(); + + this.runtime.createInstance(this); + this.emit(Event.INSTANCE_CREATED, this); } @@ -3654,10 +3720,10 @@ class Component extends R3Object { } /** - * getRuntime() - * - Gets the current runtime object + * setRuntime() + * - Sets the runtime property of this component required for constructing an instance of this component. */ - getRuntime() { + setRuntime() { this.emit( Event.GET_RUNTIME, @@ -3697,7 +3763,7 @@ Component.MAX_COMPONENT = 0x9; Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3738,8 +3804,8 @@ Component.MAX_COMPONENT = 0x9; Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -3757,8 +3823,8 @@ Component.MAX_COMPONENT = 0x9; Methods: - - initialized() - Overrides for R3.Event.R3Object.initialized() + - initialize() + Overrides for R3.Event.R3Object.initialize() Static Methods: @@ -3774,6 +3840,10 @@ class Project extends R3Object { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3785,7 +3855,7 @@ class Project extends R3Object { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3793,15 +3863,16 @@ class Project extends R3Object { } /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.PROJECT_INITIALIZED, this); @@ -3825,7 +3896,7 @@ class Project extends R3Object { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -3916,6 +3987,10 @@ class RuntimeCodeMirror extends RuntimeCoder { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -3927,7 +4002,7 @@ class RuntimeCodeMirror extends RuntimeCoder { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -3951,7 +4026,7 @@ class RuntimeCodeMirror extends RuntimeCoder { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4042,6 +4117,10 @@ class RuntimeDocument extends RuntimeDefault { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4053,7 +4132,7 @@ class RuntimeDocument extends RuntimeDefault { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4077,7 +4156,7 @@ class RuntimeDocument extends RuntimeDefault { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4168,6 +4247,10 @@ class RuntimeControlKit extends RuntimeGUI { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4179,7 +4262,7 @@ class RuntimeControlKit extends RuntimeGUI { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4203,7 +4286,7 @@ class RuntimeControlKit extends RuntimeGUI { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4294,6 +4377,10 @@ class RuntimeThree extends RuntimeGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4305,7 +4392,7 @@ class RuntimeThree extends RuntimeGraphics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4329,7 +4416,7 @@ class RuntimeThree extends RuntimeGraphics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4420,6 +4507,10 @@ class RuntimeBullet extends RuntimePhysics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4431,7 +4522,7 @@ class RuntimeBullet extends RuntimePhysics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4455,7 +4546,7 @@ class RuntimeBullet extends RuntimePhysics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4546,6 +4637,10 @@ class RuntimeStats extends RuntimeStatistics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4557,7 +4652,7 @@ class RuntimeStats extends RuntimeStatistics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4581,7 +4676,7 @@ class RuntimeStats extends RuntimeStatistics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4622,8 +4717,8 @@ class RuntimeStats extends RuntimeStatistics { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -4641,7 +4736,7 @@ class RuntimeStats extends RuntimeStatistics { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -4656,8 +4751,8 @@ class RuntimeStats extends RuntimeStatistics { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -4675,7 +4770,7 @@ class RuntimeStats extends RuntimeStatistics { Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED @@ -4693,6 +4788,10 @@ class ComponentDOM extends Component { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4704,7 +4803,7 @@ class ComponentDOM extends Component { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4712,16 +4811,17 @@ class ComponentDOM extends Component { } /** - * initialized() + * initialize() * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an * Event.DOM_COMPONENT_INITIALIZED */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.OBJECT_INITIALIZED, this); @@ -4747,7 +4847,7 @@ class ComponentDOM extends Component { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4788,8 +4888,8 @@ class ComponentDOM extends Component { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -4807,7 +4907,7 @@ class ComponentDOM extends Component { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -4822,8 +4922,8 @@ class ComponentDOM extends Component { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -4841,7 +4941,7 @@ class ComponentDOM extends Component { Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -4859,6 +4959,10 @@ class ComponentGraphics extends Component { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -4870,7 +4974,7 @@ class ComponentGraphics extends Component { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -4878,16 +4982,17 @@ class ComponentGraphics extends Component { } /** - * initialized() + * initialize() * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an * Event.GRAPHICS_COMPONENT_INITIALIZED */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.OBJECT_INITIALIZED, this); @@ -4913,7 +5018,7 @@ class ComponentGraphics extends Component { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -4954,8 +5059,8 @@ class ComponentGraphics extends Component { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -4973,7 +5078,7 @@ class ComponentGraphics extends Component { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -4988,8 +5093,8 @@ class ComponentGraphics extends Component { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5007,7 +5112,7 @@ class ComponentGraphics extends Component { Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.INPUT_COMPONENT_INITIALIZED @@ -5025,6 +5130,10 @@ class ComponentInput extends Component { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -5036,7 +5145,7 @@ class ComponentInput extends Component { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -5044,16 +5153,17 @@ class ComponentInput extends Component { } /** - * initialized() + * initialize() * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an * Event.INPUT_COMPONENT_INITIALIZED */ - initialized() { + initialize() { - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } Event.Emit(Event.OBJECT_INITIALIZED, this); @@ -5079,7 +5189,7 @@ class ComponentInput extends Component { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -5120,8 +5230,8 @@ class ComponentInput extends Component { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -5139,7 +5249,7 @@ class ComponentInput extends Component { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -5154,8 +5264,8 @@ class ComponentInput extends Component { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5173,7 +5283,7 @@ class ComponentInput extends Component { Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED @@ -5209,6 +5319,10 @@ class ComponentCanvas extends ComponentDOM { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -5220,7 +5334,7 @@ class ComponentCanvas extends ComponentDOM { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -5244,7 +5358,7 @@ class ComponentCanvas extends ComponentDOM { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -5285,8 +5399,8 @@ class ComponentCanvas extends ComponentDOM { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -5304,7 +5418,7 @@ class ComponentCanvas extends ComponentDOM { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -5319,8 +5433,8 @@ class ComponentCanvas extends ComponentDOM { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5338,7 +5452,7 @@ class ComponentCanvas extends ComponentDOM { Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -5374,6 +5488,10 @@ class ComponentImage extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -5385,7 +5503,7 @@ class ComponentImage extends ComponentGraphics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -5409,7 +5527,7 @@ class ComponentImage extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -5450,8 +5568,8 @@ class ComponentImage extends ComponentGraphics { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -5469,7 +5587,7 @@ class ComponentImage extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -5484,8 +5602,8 @@ class ComponentImage extends ComponentGraphics { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5503,7 +5621,7 @@ class ComponentImage extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -5539,6 +5657,10 @@ class ComponentMaterial extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -5550,7 +5672,7 @@ class ComponentMaterial extends ComponentGraphics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -5574,7 +5696,7 @@ class ComponentMaterial extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -5615,8 +5737,8 @@ class ComponentMaterial extends ComponentGraphics { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -5634,7 +5756,7 @@ class ComponentMaterial extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -5649,8 +5771,8 @@ class ComponentMaterial extends ComponentGraphics { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5668,7 +5790,7 @@ class ComponentMaterial extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -5704,6 +5826,10 @@ class ComponentMesh extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -5715,7 +5841,7 @@ class ComponentMesh extends ComponentGraphics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -5739,7 +5865,7 @@ class ComponentMesh extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -5780,8 +5906,8 @@ class ComponentMesh extends ComponentGraphics { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -5799,7 +5925,7 @@ class ComponentMesh extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -5814,8 +5940,8 @@ class ComponentMesh extends ComponentGraphics { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5833,7 +5959,7 @@ class ComponentMesh extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -5869,6 +5995,10 @@ class ComponentTexture extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -5880,7 +6010,7 @@ class ComponentTexture extends ComponentGraphics { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -5904,7 +6034,7 @@ class ComponentTexture extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -5945,8 +6075,8 @@ class ComponentTexture extends ComponentGraphics { Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -5964,7 +6094,7 @@ class ComponentTexture extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -5979,8 +6109,8 @@ class ComponentTexture extends ComponentGraphics { - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -5998,7 +6128,7 @@ class ComponentTexture extends ComponentGraphics { Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.INPUT_COMPONENT_INITIALIZED @@ -6034,6 +6164,10 @@ class ComponentTouch extends ComponentInput { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -6045,7 +6179,7 @@ class ComponentTouch extends ComponentInput { Object.assign(this, options); if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/package.json b/package.json index 2f5d629..eb1c653 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "r3", - "version" : "2.0.511", + "version" : "2.0.520", "description": "", "private": true, "dependencies": { diff --git a/src/r3/r3-component/r3-canvas.js b/src/r3/r3-component/r3-canvas.js index 00c50f1..dbbddab 100644 --- a/src/r3/r3-component/r3-canvas.js +++ b/src/r3/r3-component/r3-canvas.js @@ -19,7 +19,7 @@ const DOM = require('.././r3-d-o-m.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const DOM = require('.././r3-d-o-m.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const DOM = require('.././r3-d-o-m.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -113,7 +113,7 @@ const DOM = require('.././r3-d-o-m.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED @@ -190,7 +190,7 @@ class Canvas extends DOM { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component-canvas.js b/src/r3/r3-component/r3-component-canvas.js index e9d89d7..0e8defb 100644 --- a/src/r3/r3-component/r3-component-canvas.js +++ b/src/r3/r3-component/r3-component-canvas.js @@ -19,7 +19,7 @@ const ComponentDOM = require('.././r3-component-d-o-m.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const ComponentDOM = require('.././r3-component-d-o-m.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const ComponentDOM = require('.././r3-component-d-o-m.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const ComponentDOM = require('.././r3-component-d-o-m.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const ComponentDOM = require('.././r3-component-d-o-m.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED @@ -170,6 +170,10 @@ class ComponentCanvas extends ComponentDOM { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -190,7 +194,7 @@ class ComponentCanvas extends ComponentDOM { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component-d-o-m.js b/src/r3/r3-component/r3-component-d-o-m.js index ec26d3f..0fcb3da 100644 --- a/src/r3/r3-component/r3-component-d-o-m.js +++ b/src/r3/r3-component/r3-component-d-o-m.js @@ -19,7 +19,7 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const Component = require('.././r3-component.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const Component = require('.././r3-component.js'); Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED @@ -136,7 +136,7 @@ const Component = require('.././r3-component.js'); CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_METHODS_START - initialized() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED + initialize() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.DOM_COMPONENT_INITIALIZED CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -153,6 +153,10 @@ class ComponentDOM extends Component { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -173,7 +177,7 @@ class ComponentDOM extends Component { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -186,25 +190,27 @@ class ComponentDOM extends Component { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an * Event.DOM_COMPONENT_INITIALIZED */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.OBJECT_INITIALIZED, this); Event.Emit(Event.COMPONENT_INITIALIZED, this); Event.Emit(Event.DOM_COMPONENT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-component/r3-component-graphics.js b/src/r3/r3-component/r3-component-graphics.js index a0da744..4333d7c 100644 --- a/src/r3/r3-component/r3-component-graphics.js +++ b/src/r3/r3-component/r3-component-graphics.js @@ -19,7 +19,7 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const Component = require('.././r3-component.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const Component = require('.././r3-component.js'); Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -136,7 +136,7 @@ const Component = require('.././r3-component.js'); CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_METHODS_START - initialized() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED + initialize() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -153,6 +153,10 @@ class ComponentGraphics extends Component { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -173,7 +177,7 @@ class ComponentGraphics extends Component { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -186,25 +190,27 @@ class ComponentGraphics extends Component { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an * Event.GRAPHICS_COMPONENT_INITIALIZED */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.OBJECT_INITIALIZED, this); Event.Emit(Event.COMPONENT_INITIALIZED, this); Event.Emit(Event.GRAPHICS_COMPONENT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-component/r3-component-image.js b/src/r3/r3-component/r3-component-image.js index 5a42c6a..7c8c814 100644 --- a/src/r3/r3-component/r3-component-image.js +++ b/src/r3/r3-component/r3-component-image.js @@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -170,6 +170,10 @@ class ComponentImage extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -190,7 +194,7 @@ class ComponentImage extends ComponentGraphics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component-input.js b/src/r3/r3-component/r3-component-input.js index 90db57f..bf91a19 100644 --- a/src/r3/r3-component/r3-component-input.js +++ b/src/r3/r3-component/r3-component-input.js @@ -19,7 +19,7 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const Component = require('.././r3-component.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const Component = require('.././r3-component.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const Component = require('.././r3-component.js'); Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.INPUT_COMPONENT_INITIALIZED @@ -136,7 +136,7 @@ const Component = require('.././r3-component.js'); CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_METHODS_START - initialized() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.INPUT_COMPONENT_INITIALIZED + initialize() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.INPUT_COMPONENT_INITIALIZED CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -153,6 +153,10 @@ class ComponentInput extends Component { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -173,7 +177,7 @@ class ComponentInput extends Component { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -186,25 +190,27 @@ class ComponentInput extends Component { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an * Event.INPUT_COMPONENT_INITIALIZED */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.OBJECT_INITIALIZED, this); Event.Emit(Event.COMPONENT_INITIALIZED, this); Event.Emit(Event.INPUT_COMPONENT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-component/r3-component-material.js b/src/r3/r3-component/r3-component-material.js index 453fca3..867a7a4 100644 --- a/src/r3/r3-component/r3-component-material.js +++ b/src/r3/r3-component/r3-component-material.js @@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -170,6 +170,10 @@ class ComponentMaterial extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -190,7 +194,7 @@ class ComponentMaterial extends ComponentGraphics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component-mesh.js b/src/r3/r3-component/r3-component-mesh.js index 8bd2876..53dd6e4 100644 --- a/src/r3/r3-component/r3-component-mesh.js +++ b/src/r3/r3-component/r3-component-mesh.js @@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -170,6 +170,10 @@ class ComponentMesh extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -190,7 +194,7 @@ class ComponentMesh extends ComponentGraphics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component-texture.js b/src/r3/r3-component/r3-component-texture.js index 003a302..f81159c 100644 --- a/src/r3/r3-component/r3-component-texture.js +++ b/src/r3/r3-component/r3-component-texture.js @@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED @@ -170,6 +170,10 @@ class ComponentTexture extends ComponentGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -190,7 +194,7 @@ class ComponentTexture extends ComponentGraphics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component-touch.js b/src/r3/r3-component/r3-component-touch.js index 4a62324..832125d 100644 --- a/src/r3/r3-component/r3-component-touch.js +++ b/src/r3/r3-component/r3-component-touch.js @@ -19,7 +19,7 @@ const ComponentInput = require('.././r3-component-input.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const ComponentInput = require('.././r3-component-input.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const ComponentInput = require('.././r3-component-input.js'); Inherited Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const ComponentInput = require('.././r3-component-input.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Inherited Static Methods: @@ -113,7 +113,7 @@ const ComponentInput = require('.././r3-component-input.js'); Inherited Methods: - - initialized() + - initialize() In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.INPUT_COMPONENT_INITIALIZED @@ -170,6 +170,10 @@ class ComponentTouch extends ComponentInput { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -190,7 +194,7 @@ class ComponentTouch extends ComponentInput { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-component/r3-component.js b/src/r3/r3-component/r3-component.js index 8968c6c..0183e06 100644 --- a/src/r3/r3-component/r3-component.js +++ b/src/r3/r3-component/r3-component.js @@ -19,7 +19,7 @@ const R3Object = require('.././r3-r3-object.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const R3Object = require('.././r3-r3-object.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,7 +79,7 @@ const R3Object = require('.././r3-r3-object.js'); Methods: - - initialized() + - initialize() Should raises an event(s) which indicates that this object initialized - createInstance() @@ -94,8 +94,8 @@ const R3Object = require('.././r3-r3-object.js'); - updateFromInstance() Updates this object by copying the values of its instance into the current object. - - getRuntime() - Gets the current runtime object + - setRuntime() + Sets the runtime property of this component required for constructing an instance of this component. Static Methods: @@ -116,12 +116,12 @@ const R3Object = require('.././r3-r3-object.js'); CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raises an event(s) which indicates that this object initialized + initialize() - Should raises an event(s) which indicates that this object initialized createInstance() - Creates an instance of this object based on the current runtime dispose() - Disposes of this object by disposing the instance first. disposeInstance() - Disposes of the runtime instance. updateFromInstance() - Updates this object by copying the values of its instance into the current object. - getRuntime() - Gets the current runtime object + setRuntime() - Sets the runtime property of this component required for constructing an instance of this component. CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -138,6 +138,10 @@ class Component extends R3Object { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -158,7 +162,7 @@ class Component extends R3Object { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -172,23 +176,25 @@ class Component extends R3Object { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - Should raises an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.OBJECT_INITIALIZED, this); Event.Emit(Event.COMPONENT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } @@ -201,13 +207,10 @@ class Component extends R3Object { //GENERATED_CREATE_INSTANCE_METHOD_START this.emit(Event.CREATE_INSTANCE_BEFORE, this); - this.getRuntime().createInstance( - this, - { - //GENERATED_CREATE_INSTANCE_OPTIONS_START - //GENERATED_CREATE_INSTANCE_OPTIONS_END - } - ) + this.setRuntime(); + + this.runtime.createInstance(this); + this.emit(Event.INSTANCE_CREATED, this); //GENERATED_CREATE_INSTANCE_METHOD_END @@ -278,12 +281,12 @@ class Component extends R3Object { } /** - * getRuntime() - * - Gets the current runtime object + * setRuntime() + * - Sets the runtime property of this component required for constructing an instance of this component. */ - getRuntime() { + setRuntime() { - //GENERATED_GET_RUNTIME_METHOD_START + //GENERATED_SET_RUNTIME_METHOD_START this.emit( Event.GET_RUNTIME, this, @@ -292,10 +295,10 @@ class Component extends R3Object { }.bind(this) ) - //GENERATED_GET_RUNTIME_METHOD_END + //GENERATED_SET_RUNTIME_METHOD_END - //CUSTOM_GET_RUNTIME_METHOD_START - //CUSTOM_GET_RUNTIME_METHOD_END + //CUSTOM_SET_RUNTIME_METHOD_START + //CUSTOM_SET_RUNTIME_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-entity/r3-entity-slider.js b/src/r3/r3-entity/r3-entity-slider.js index 1ca1e02..2684fb5 100644 --- a/src/r3/r3-entity/r3-entity-slider.js +++ b/src/r3/r3-entity/r3-entity-slider.js @@ -19,7 +19,7 @@ const Entity = require('.././r3-entity.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized Inherited Static Methods: @@ -75,6 +75,10 @@ class EntitySlider extends Entity { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -95,7 +99,7 @@ class EntitySlider extends Entity { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-entity/r3-entity.js b/src/r3/r3-entity/r3-entity.js index fc8a4df..3623277 100644 --- a/src/r3/r3-entity/r3-entity.js +++ b/src/r3/r3-entity/r3-entity.js @@ -11,7 +11,7 @@ const Utils = require('.././r3-utils'); CUSTOM_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raise an event(s) which indicates that this object initialized + initialize() - Should raise an event(s) which indicates that this object initialized CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -48,7 +48,7 @@ class Entity { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -64,23 +64,25 @@ class Entity { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.OBJECT_INITIALIZED, this); Event.Emit(Event.ENTITY_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-event.js b/src/r3/r3-event.js index 31a0d08..f42f526 100644 --- a/src/r3/r3-event.js +++ b/src/r3/r3-event.js @@ -10,7 +10,7 @@ const Utils = require('./r3-utils'); CUSTOM_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raise an event(s) which indicates that this object initialized + initialize() - Should raise an event(s) which indicates that this object initialized async(eventId, data, clientCallback, clientErrorCallback) - Simply calls 'Async()' passing it the arguments emit(eventId, data, clientCallback, clientErrorCallback) - Simply calls 'Emit()' passing it the arguments subscribe(eventId, callback) - Simply calls 'Subscribe()' passing it the arguments @@ -53,7 +53,7 @@ class Event { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -76,22 +76,24 @@ class Event { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.EVENT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } diff --git a/src/r3/r3-project.js b/src/r3/r3-project.js index 7469ff9..f47d35b 100644 --- a/src/r3/r3-project.js +++ b/src/r3/r3-project.js @@ -19,7 +19,7 @@ const R3Object = require('./r3-r3-object.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -60,8 +60,8 @@ const R3Object = require('./r3-r3-object.js'); Inherited Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Inherited Static Methods: @@ -79,8 +79,8 @@ const R3Object = require('./r3-r3-object.js'); Methods: - - initialized() - Overrides for R3.Event.R3Object.initialized() + - initialize() + Overrides for R3.Event.R3Object.initialize() Static Methods: @@ -101,7 +101,7 @@ const R3Object = require('./r3-r3-object.js'); CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raise an event(s) which indicates that this object initialized + initialize() - Should raise an event(s) which indicates that this object initialized CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -118,6 +118,10 @@ class Project extends R3Object { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -138,7 +142,7 @@ class Project extends R3Object { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -151,22 +155,24 @@ class Project extends R3Object { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.PROJECT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-r3-object.js b/src/r3/r3-r3-object.js index 2935ce5..b3c3844 100644 --- a/src/r3/r3-r3-object.js +++ b/src/r3/r3-r3-object.js @@ -18,7 +18,7 @@ const Event = require('./r3-event.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -59,8 +59,8 @@ const Event = require('./r3-event.js'); Methods: - - initialized() - Overrides for R3.Event.initialized() + - initialize() + Overrides for R3.Event.initialize() Static Methods: @@ -84,7 +84,7 @@ const Event = require('./r3-event.js'); CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raise an event(s) which indicates that this object initialized + initialize() - Should raise an event(s) which indicates that this object initialized CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -101,6 +101,10 @@ class R3Object extends Event { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class R3Object extends Event { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -146,22 +150,24 @@ class R3Object extends Event { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START Event.Emit(Event.OBJECT_INITIALIZED, this); - //CUSTOM_INITIALIZED_METHOD_END + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/r3/r3-r3.js b/src/r3/r3-r3.js index 24d9cb5..e3b245c 100644 --- a/src/r3/r3-r3.js +++ b/src/r3/r3-r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '2.0.511'; - static compileDate = '2021 Sep 10 - 09:57:53 am'; + static version = '2.0.520'; + static compileDate = '2021 Sep 10 - 10:57:46 am'; } //GENERATED_IMPORTS_START diff --git a/src/r3/r3-runtime/r3-runtime-bullet.js b/src/r3/r3-runtime/r3-runtime-bullet.js index 1d9817b..f0070ce 100644 --- a/src/r3/r3-runtime/r3-runtime-bullet.js +++ b/src/r3/r3-runtime/r3-runtime-bullet.js @@ -19,7 +19,7 @@ const RuntimePhysics = require('.././r3-runtime-physics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -131,6 +131,10 @@ class RuntimeBullet extends RuntimePhysics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -151,7 +155,7 @@ class RuntimeBullet extends RuntimePhysics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-code-mirror.js b/src/r3/r3-runtime/r3-runtime-code-mirror.js index fe2dde5..3f1f5d0 100644 --- a/src/r3/r3-runtime/r3-runtime-code-mirror.js +++ b/src/r3/r3-runtime/r3-runtime-code-mirror.js @@ -19,7 +19,7 @@ const RuntimeCoder = require('.././r3-runtime-coder.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -131,6 +131,10 @@ class RuntimeCodeMirror extends RuntimeCoder { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -151,7 +155,7 @@ class RuntimeCodeMirror extends RuntimeCoder { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-coder.js b/src/r3/r3-runtime/r3-runtime-coder.js index 125eeed..e6e4570 100644 --- a/src/r3/r3-runtime/r3-runtime-coder.js +++ b/src/r3/r3-runtime/r3-runtime-coder.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimeCoder extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimeCoder extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-control-kit.js b/src/r3/r3-runtime/r3-runtime-control-kit.js index 97ebd61..f89e96f 100644 --- a/src/r3/r3-runtime/r3-runtime-control-kit.js +++ b/src/r3/r3-runtime/r3-runtime-control-kit.js @@ -19,7 +19,7 @@ const RuntimeGUI = require('.././r3-runtime-g-u-i.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -131,6 +131,10 @@ class RuntimeControlKit extends RuntimeGUI { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -151,7 +155,7 @@ class RuntimeControlKit extends RuntimeGUI { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-default.js b/src/r3/r3-runtime/r3-runtime-default.js index 681335c..cbc3490 100644 --- a/src/r3/r3-runtime/r3-runtime-default.js +++ b/src/r3/r3-runtime/r3-runtime-default.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimeDefault extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimeDefault extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-document.js b/src/r3/r3-runtime/r3-runtime-document.js index d15ac42..eb31481 100644 --- a/src/r3/r3-runtime/r3-runtime-document.js +++ b/src/r3/r3-runtime/r3-runtime-document.js @@ -19,7 +19,7 @@ const RuntimeDefault = require('.././r3-runtime-default.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -131,6 +131,10 @@ class RuntimeDocument extends RuntimeDefault { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -151,7 +155,7 @@ class RuntimeDocument extends RuntimeDefault { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-g-u-i.js b/src/r3/r3-runtime/r3-runtime-g-u-i.js index 819a4a0..22b5d32 100644 --- a/src/r3/r3-runtime/r3-runtime-g-u-i.js +++ b/src/r3/r3-runtime/r3-runtime-g-u-i.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimeGUI extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimeGUI extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-graphics.js b/src/r3/r3-runtime/r3-runtime-graphics.js index cd15fbd..274cfe1 100644 --- a/src/r3/r3-runtime/r3-runtime-graphics.js +++ b/src/r3/r3-runtime/r3-runtime-graphics.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimeGraphics extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimeGraphics extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-physics.js b/src/r3/r3-runtime/r3-runtime-physics.js index 62c5c22..a9f6a4f 100644 --- a/src/r3/r3-runtime/r3-runtime-physics.js +++ b/src/r3/r3-runtime/r3-runtime-physics.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimePhysics extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimePhysics extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-socket.js b/src/r3/r3-runtime/r3-runtime-socket.js index 0c0c27a..900efb0 100644 --- a/src/r3/r3-runtime/r3-runtime-socket.js +++ b/src/r3/r3-runtime/r3-runtime-socket.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimeSocket extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimeSocket extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-statistics.js b/src/r3/r3-runtime/r3-runtime-statistics.js index 5968f51..4e0650a 100644 --- a/src/r3/r3-runtime/r3-runtime-statistics.js +++ b/src/r3/r3-runtime/r3-runtime-statistics.js @@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -113,6 +113,10 @@ class RuntimeStatistics extends Runtime { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -133,7 +137,7 @@ class RuntimeStatistics extends Runtime { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-stats.js b/src/r3/r3-runtime/r3-runtime-stats.js index eae18b9..5f81f0f 100644 --- a/src/r3/r3-runtime/r3-runtime-stats.js +++ b/src/r3/r3-runtime/r3-runtime-stats.js @@ -19,7 +19,7 @@ const RuntimeStatistics = require('.././r3-runtime-statistics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -131,6 +131,10 @@ class RuntimeStats extends RuntimeStatistics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -151,7 +155,7 @@ class RuntimeStats extends RuntimeStatistics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime-three.js b/src/r3/r3-runtime/r3-runtime-three.js index c83b4f5..65a92e3 100644 --- a/src/r3/r3-runtime/r3-runtime-three.js +++ b/src/r3/r3-runtime/r3-runtime-three.js @@ -19,7 +19,7 @@ const RuntimeGraphics = require('.././r3-runtime-graphics.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -131,6 +131,10 @@ class RuntimeThree extends RuntimeGraphics { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -151,7 +155,7 @@ class RuntimeThree extends RuntimeGraphics { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-runtime/r3-runtime.js b/src/r3/r3-runtime/r3-runtime.js index aa6ee70..6a9e151 100644 --- a/src/r3/r3-runtime/r3-runtime.js +++ b/src/r3/r3-runtime/r3-runtime.js @@ -18,7 +18,7 @@ const Event = require('.././r3-event.js'); Inherited Methods: - - initialized() + - initialize() Should raise an event(s) which indicates that this object initialized - async(eventId, data, clientCallback, clientErrorCallback) @@ -94,6 +94,10 @@ class Runtime extends Event { options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -114,7 +118,7 @@ class Runtime extends Event { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/r3/r3-system/r3-system-runtime.js b/src/r3/r3-system/r3-system-runtime.js index 383d08f..85a1a00 100644 --- a/src/r3/r3-system/r3-system-runtime.js +++ b/src/r3/r3-system/r3-system-runtime.js @@ -62,6 +62,7 @@ const System = require('./r3-system.js'); CUSTOM_EVENT_LISTENERS_END CUSTOM_STATIC_EVENT_LISTENERS_START + Event.GET_RUNTIME CUSTOM_STATIC_EVENT_LISTENERS_END CUSTOM_METHODS_START @@ -116,6 +117,10 @@ class SystemRuntime extends System { //GENERATED_STATIC_START_METHOD_START //GENERATED_STATIC_EVENT_LISTENERS_START_START + SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe( + Event.GET_RUNTIME, + SystemRuntime.OnGetRuntime + ); //GENERATED_STATIC_EVENT_LISTENERS_START_END @@ -143,6 +148,9 @@ class SystemRuntime extends System { //GENERATED_STATIC_STOP_METHOD_START //GENERATED_STATIC_EVENT_LISTENERS_STOP_START + SystemRuntime.Subscriptions['GET_RUNTIME'].remove(); + delete SystemRuntime.Subscriptions['GET_RUNTIME']; + //GENERATED_STATIC_EVENT_LISTENERS_STOP_END //CUSTOM_BEFORE_STATIC_SYSTEM_STOP_START @@ -164,6 +172,22 @@ class SystemRuntime extends System { //GENERATED_EVENT_LISTENER_METHODS_END //GENERATED_STATIC_EVENT_LISTENER_METHODS_START + + /** + * OnGetRuntime() + * - Listens to events of type Event.GET_RUNTIME and executes this function. + * @param object (The event data passed as argument - typically an R3Object) + * @return null + */ + static OnGetRuntime(object) { + + //GENERATED_STATIC_ON_GET_RUNTIME_METHOD_START + //GENERATED_STATIC_ON_GET_RUNTIME_METHOD_END + + //CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_START + //CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_END + + } //GENERATED_STATIC_EVENT_LISTENER_METHODS_END //CUSTOM_IMPLEMENTATION_START diff --git a/src/r3/r3-utils.js b/src/r3/r3-utils.js index cb35454..190559a 100644 --- a/src/r3/r3-utils.js +++ b/src/r3/r3-utils.js @@ -10,7 +10,7 @@ const Event = require('./r3-event'); CUSTOM_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raise an event(s) which indicates that this object initialized + initialize() - Should raise an event(s) which indicates that this object initialized CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START @@ -47,7 +47,7 @@ class Utils { //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } @@ -1295,21 +1295,23 @@ class Utils { //GENERATED_METHODS_START /** - * initialized() + * initialize() * - Should raise an event(s) which indicates that this object initialized */ - initialized() { + initialize() { - //GENERATED_INITIALIZED_METHOD_START - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; + //GENERATED_INITIALIZE_METHOD_START + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); } else { - console.warn('Multiple calls to initialized() - check your callstack'); + delete this.callDepth; + this.initialized = true; } - //GENERATED_INITIALIZED_METHOD_END - //CUSTOM_INITIALIZED_METHOD_START - //CUSTOM_INITIALIZED_METHOD_END + //GENERATED_INITIALIZE_METHOD_END + + //CUSTOM_INITIALIZE_METHOD_START + //CUSTOM_INITIALIZE_METHOD_END } //GENERATED_METHODS_END diff --git a/src/templates/constructor.template b/src/templates/constructor.template index 9019fdd..32b7f17 100644 --- a/src/templates/constructor.template +++ b/src/templates/constructor.template @@ -24,7 +24,7 @@ //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/templates/constructor_extends.template b/src/templates/constructor_extends.template index 8e0d2ec..d7c5fcd 100644 --- a/src/templates/constructor_extends.template +++ b/src/templates/constructor_extends.template @@ -4,6 +4,10 @@ options = {}; } + if (typeof options.initialized === 'undefined') { + options.initialized = false; + } + if (typeof options.callDepth === 'undefined') { options.callDepth = 0; } else { @@ -24,7 +28,7 @@ //CUSTOM_BEFORE_INIT_END if (options.callDepth === 0) { - this.initialized(); + this.initialize(); } else { options.callDepth--; } diff --git a/src/templates/create_instance.template b/src/templates/create_instance.template index f0932e2..9774c34 100644 --- a/src/templates/create_instance.template +++ b/src/templates/create_instance.template @@ -1,10 +1,7 @@ this.emit(Event.CREATE_INSTANCE_BEFORE, this); - this.getRuntime().createInstance( - this, - { - //GENERATED_CREATE_INSTANCE_OPTIONS_START - //GENERATED_CREATE_INSTANCE_OPTIONS_END - } - ) + this.setRuntime(); + + this.runtime.createInstance(this); + this.emit(Event.INSTANCE_CREATED, this); \ No newline at end of file diff --git a/src/templates/initialize.template b/src/templates/initialize.template new file mode 100644 index 0000000..f01c110 --- /dev/null +++ b/src/templates/initialize.template @@ -0,0 +1,6 @@ + if (this.initialized) { + console.warn('Multiple calls to initialize() - check your callstack'); + } else { + delete this.callDepth; + this.initialized = true; + } diff --git a/src/templates/initialized.template b/src/templates/initialized.template deleted file mode 100644 index 1fc40bc..0000000 --- a/src/templates/initialized.template +++ /dev/null @@ -1,5 +0,0 @@ - if (this.hasOwnProperty('callDepth')) { - delete this.callDepth; - } else { - console.warn('Multiple calls to initialized() - check your callstack'); - } \ No newline at end of file diff --git a/src/templates/normal.template b/src/templates/normal.template index db93a65..290e9db 100644 --- a/src/templates/normal.template +++ b/src/templates/normal.template @@ -11,7 +11,7 @@ const Utils = require('INCLUDE_PATH/r3-utils'); CUSTOM_OPTIONS_END CUSTOM_METHODS_START - initialized() - Should raise an event(s) which indicates that this object initialized + initialize() - Should raise an event(s) which indicates that this object initialized CUSTOM_METHODS_END CUSTOM_STATIC_METHODS_START diff --git a/src/templates/get_runtime.template b/src/templates/set_runtime.template similarity index 100% rename from src/templates/get_runtime.template rename to src/templates/set_runtime.template diff --git a/src/templates/token.db b/src/templates/token.db index ac04c8f..9632de9 100644 --- a/src/templates/token.db +++ b/src/templates/token.db @@ -12,15 +12,15 @@ GENERATED_EVENT_LISTENERS_START GENERATED_EVENT_LISTENERS_STOP GENERATED_EVENTS GENERATED_EXPORTS -GENERATED_GET_RUNTIME_METHOD GENERATED_IMPORTS GENERATED_INDEX_BODY GENERATED_INHERITED -GENERATED_INITIALIZED_METHOD +GENERATED_INITIALIZE_METHOD GENERATED_METHOD_NAME_UPPERCASE_METHOD GENERATED_METHODS GENERATED_OPTIONS_INIT GENERATED_OUT_OF_CLASS_IMPLEMENTATION +GENERATED_SET_RUNTIME_METHOD GENERATED_STATIC_ASYNC_METHOD GENERATED_STATIC_EMIT_METHOD GENERATED_STATIC_EVENT_LISTENER_METHODS @@ -29,6 +29,7 @@ GENERATED_STATIC_EVENT_LISTENERS_STOP GENERATED_STATIC_METHOD_NAME_UPPERCASE_METHOD GENERATED_STATIC_METHODS GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD +GENERATED_STATIC_ON_GET_RUNTIME_METHOD GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD GENERATED_STATIC_ON_KEYBOARD_UP_METHOD @@ -64,9 +65,8 @@ CUSTOM_DISPOSE_METHOD CUSTOM_EMIT_METHOD CUSTOM_EVENT_LISTENERS CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS -CUSTOM_GET_RUNTIME_METHOD CUSTOM_IMPLEMENTATION -CUSTOM_INITIALIZED_METHOD +CUSTOM_INITIALIZE_METHOD CUSTOM_INSTANCE_OPTIONS_MAPPING CUSTOM_LINKED_OBJECTS CUSTOM_METHOD_NAME_UPPERCASE_METHOD @@ -74,12 +74,14 @@ CUSTOM_METHODS CUSTOM_OPTIONS CUSTOM_OPTIONS_INIT CUSTOM_OUT_OF_CLASS_IMPLEMENTATION +CUSTOM_SET_RUNTIME_METHOD CUSTOM_STATIC_ASYNC_METHOD CUSTOM_STATIC_EMIT_METHOD CUSTOM_STATIC_EVENT_LISTENERS CUSTOM_STATIC_METHOD_NAME_UPPERCASE_METHOD CUSTOM_STATIC_METHODS CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD +CUSTOM_STATIC_ON_GET_RUNTIME_METHOD CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD diff --git a/version b/version index efa4f08..0318c75 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.511 \ No newline at end of file +2.0.520 \ No newline at end of file