fix initialize
parent
0a88b49281
commit
6a99de01d8
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version" : "2.0.511",
|
"version" : "2.0.520",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -19,7 +19,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -113,7 +113,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.DOM_COMPONENT_INITIALIZED
|
Event.DOM_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ class Canvas extends DOM {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.DOM_COMPONENT_INITIALIZED
|
Event.DOM_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -170,6 +170,10 @@ class ComponentCanvas extends ComponentDOM {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -190,7 +194,7 @@ class ComponentCanvas extends ComponentDOM {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const Component = require('.././r3-component.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.DOM_COMPONENT_INITIALIZED
|
Event.DOM_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ const Component = require('.././r3-component.js');
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -153,6 +153,10 @@ class ComponentDOM extends Component {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -173,7 +177,7 @@ class ComponentDOM extends Component {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -186,25 +190,27 @@ class ComponentDOM extends Component {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
* Event.DOM_COMPONENT_INITIALIZED
|
* Event.DOM_COMPONENT_INITIALIZED
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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.OBJECT_INITIALIZED, this);
|
||||||
Event.Emit(Event.COMPONENT_INITIALIZED, this);
|
Event.Emit(Event.COMPONENT_INITIALIZED, this);
|
||||||
Event.Emit(Event.DOM_COMPONENT_INITIALIZED, this);
|
Event.Emit(Event.DOM_COMPONENT_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const Component = require('.././r3-component.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED
|
Event.GRAPHICS_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ const Component = require('.././r3-component.js');
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -153,6 +153,10 @@ class ComponentGraphics extends Component {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -173,7 +177,7 @@ class ComponentGraphics extends Component {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -186,25 +190,27 @@ class ComponentGraphics extends Component {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
* Event.GRAPHICS_COMPONENT_INITIALIZED
|
* Event.GRAPHICS_COMPONENT_INITIALIZED
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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.OBJECT_INITIALIZED, this);
|
||||||
Event.Emit(Event.COMPONENT_INITIALIZED, this);
|
Event.Emit(Event.COMPONENT_INITIALIZED, this);
|
||||||
Event.Emit(Event.GRAPHICS_COMPONENT_INITIALIZED, this);
|
Event.Emit(Event.GRAPHICS_COMPONENT_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED
|
Event.GRAPHICS_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -170,6 +170,10 @@ class ComponentImage extends ComponentGraphics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -190,7 +194,7 @@ class ComponentImage extends ComponentGraphics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const Component = require('.././r3-component.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const Component = require('.././r3-component.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.INPUT_COMPONENT_INITIALIZED
|
Event.INPUT_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ const Component = require('.././r3-component.js');
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -153,6 +153,10 @@ class ComponentInput extends Component {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -173,7 +177,7 @@ class ComponentInput extends Component {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -186,25 +190,27 @@ class ComponentInput extends Component {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
* Event.INPUT_COMPONENT_INITIALIZED
|
* Event.INPUT_COMPONENT_INITIALIZED
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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.OBJECT_INITIALIZED, this);
|
||||||
Event.Emit(Event.COMPONENT_INITIALIZED, this);
|
Event.Emit(Event.COMPONENT_INITIALIZED, this);
|
||||||
Event.Emit(Event.INPUT_COMPONENT_INITIALIZED, this);
|
Event.Emit(Event.INPUT_COMPONENT_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED
|
Event.GRAPHICS_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -170,6 +170,10 @@ class ComponentMaterial extends ComponentGraphics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -190,7 +194,7 @@ class ComponentMaterial extends ComponentGraphics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED
|
Event.GRAPHICS_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -170,6 +170,10 @@ class ComponentMesh extends ComponentGraphics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -190,7 +194,7 @@ class ComponentMesh extends ComponentGraphics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED
|
Event.GRAPHICS_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -170,6 +170,10 @@ class ComponentTexture extends ComponentGraphics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -190,7 +194,7 @@ class ComponentTexture extends ComponentGraphics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const ComponentInput = require('.././r3-component-input.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const ComponentInput = require('.././r3-component-input.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const ComponentInput = require('.././r3-component-input.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const ComponentInput = require('.././r3-component-input.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ const ComponentInput = require('.././r3-component-input.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||||
Event.INPUT_COMPONENT_INITIALIZED
|
Event.INPUT_COMPONENT_INITIALIZED
|
||||||
|
|
||||||
|
@ -170,6 +170,10 @@ class ComponentTouch extends ComponentInput {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -190,7 +194,7 @@ class ComponentTouch extends ComponentInput {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raises an event(s) which indicates that this object initialized
|
Should raises an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- createInstance()
|
- createInstance()
|
||||||
|
@ -94,8 +94,8 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
- updateFromInstance()
|
- updateFromInstance()
|
||||||
Updates this object by copying the values of its instance into the current object.
|
Updates this object by copying the values of its instance into the current object.
|
||||||
|
|
||||||
- getRuntime()
|
- setRuntime()
|
||||||
Gets the current runtime object
|
Sets the runtime property of this component required for constructing an instance of this component.
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -116,12 +116,12 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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
|
createInstance() - Creates an instance of this object based on the current runtime
|
||||||
dispose() - Disposes of this object by disposing the instance first.
|
dispose() - Disposes of this object by disposing the instance first.
|
||||||
disposeInstance() - Disposes of the runtime instance.
|
disposeInstance() - Disposes of the runtime instance.
|
||||||
updateFromInstance() - Updates this object by copying the values of its instance into the current object.
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -138,6 +138,10 @@ class Component extends R3Object {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -158,7 +162,7 @@ class Component extends R3Object {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -172,23 +176,25 @@ class Component extends R3Object {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - Should raises an event(s) which indicates that this object initialized
|
* - Should raises an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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.OBJECT_INITIALIZED, this);
|
||||||
Event.Emit(Event.COMPONENT_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
|
//GENERATED_CREATE_INSTANCE_METHOD_START
|
||||||
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
|
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
|
||||||
|
|
||||||
this.getRuntime().createInstance(
|
this.setRuntime();
|
||||||
this,
|
|
||||||
{
|
this.runtime.createInstance(this);
|
||||||
//GENERATED_CREATE_INSTANCE_OPTIONS_START
|
|
||||||
//GENERATED_CREATE_INSTANCE_OPTIONS_END
|
|
||||||
}
|
|
||||||
)
|
|
||||||
this.emit(Event.INSTANCE_CREATED, this);
|
this.emit(Event.INSTANCE_CREATED, this);
|
||||||
//GENERATED_CREATE_INSTANCE_METHOD_END
|
//GENERATED_CREATE_INSTANCE_METHOD_END
|
||||||
|
|
||||||
|
@ -278,12 +281,12 @@ class Component extends R3Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* getRuntime()
|
* setRuntime()
|
||||||
* - Gets the current runtime object
|
* - 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(
|
this.emit(
|
||||||
Event.GET_RUNTIME,
|
Event.GET_RUNTIME,
|
||||||
this,
|
this,
|
||||||
|
@ -292,10 +295,10 @@ class Component extends R3Object {
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
)
|
)
|
||||||
|
|
||||||
//GENERATED_GET_RUNTIME_METHOD_END
|
//GENERATED_SET_RUNTIME_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_GET_RUNTIME_METHOD_START
|
//CUSTOM_SET_RUNTIME_METHOD_START
|
||||||
//CUSTOM_GET_RUNTIME_METHOD_END
|
//CUSTOM_SET_RUNTIME_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Entity = require('.././r3-entity.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
@ -75,6 +75,10 @@ class EntitySlider extends Entity {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -95,7 +99,7 @@ class EntitySlider extends Entity {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ const Utils = require('.././r3-utils');
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -48,7 +48,7 @@ class Entity {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -64,23 +64,25 @@ class Entity {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raise an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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.OBJECT_INITIALIZED, this);
|
||||||
Event.Emit(Event.ENTITY_INITIALIZED, this);
|
Event.Emit(Event.ENTITY_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -10,7 +10,7 @@ const Utils = require('./r3-utils');
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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
|
async(eventId, data, clientCallback, clientErrorCallback) - Simply calls 'Async()' passing it the arguments
|
||||||
emit(eventId, data, clientCallback, clientErrorCallback) - Simply calls 'Emit()' 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
|
subscribe(eventId, callback) - Simply calls 'Subscribe()' passing it the arguments
|
||||||
|
@ -53,7 +53,7 @@ class Event {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -76,22 +76,24 @@ class Event {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raise an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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);
|
Event.Emit(Event.EVENT_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ const R3Object = require('./r3-r3-object.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -60,8 +60,8 @@ const R3Object = require('./r3-r3-object.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -79,8 +79,8 @@ const R3Object = require('./r3-r3-object.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.R3Object.initialized()
|
Overrides for R3.Event.R3Object.initialize()
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ const R3Object = require('./r3-r3-object.js');
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -118,6 +118,10 @@ class Project extends R3Object {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -138,7 +142,7 @@ class Project extends R3Object {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -151,22 +155,24 @@ class Project extends R3Object {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raise an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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);
|
Event.Emit(Event.PROJECT_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -18,7 +18,7 @@ const Event = require('./r3-event.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -59,8 +59,8 @@ const Event = require('./r3-event.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Overrides for R3.Event.initialized()
|
Overrides for R3.Event.initialize()
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ const Event = require('./r3-event.js');
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -101,6 +101,10 @@ class R3Object extends Event {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class R3Object extends Event {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -146,22 +150,24 @@ class R3Object extends Event {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raise an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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.OBJECT_INITIALIZED, this);
|
||||||
//CUSTOM_INITIALIZED_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.511';
|
static version = '2.0.520';
|
||||||
static compileDate = '2021 Sep 10 - 09:57:53 am';
|
static compileDate = '2021 Sep 10 - 10:57:46 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_IMPORTS_START
|
//GENERATED_IMPORTS_START
|
||||||
|
|
|
@ -19,7 +19,7 @@ const RuntimePhysics = require('.././r3-runtime-physics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -131,6 +131,10 @@ class RuntimeBullet extends RuntimePhysics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +155,7 @@ class RuntimeBullet extends RuntimePhysics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const RuntimeCoder = require('.././r3-runtime-coder.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -131,6 +131,10 @@ class RuntimeCodeMirror extends RuntimeCoder {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +155,7 @@ class RuntimeCodeMirror extends RuntimeCoder {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimeCoder extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimeCoder extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const RuntimeGUI = require('.././r3-runtime-g-u-i.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -131,6 +131,10 @@ class RuntimeControlKit extends RuntimeGUI {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +155,7 @@ class RuntimeControlKit extends RuntimeGUI {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimeDefault extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimeDefault extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const RuntimeDefault = require('.././r3-runtime-default.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -131,6 +131,10 @@ class RuntimeDocument extends RuntimeDefault {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +155,7 @@ class RuntimeDocument extends RuntimeDefault {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimeGUI extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimeGUI extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimeGraphics extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimeGraphics extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimePhysics extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimePhysics extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimeSocket extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimeSocket extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const Runtime = require('.././r3-runtime.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -113,6 +113,10 @@ class RuntimeStatistics extends Runtime {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -133,7 +137,7 @@ class RuntimeStatistics extends Runtime {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const RuntimeStatistics = require('.././r3-runtime-statistics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -131,6 +131,10 @@ class RuntimeStats extends RuntimeStatistics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +155,7 @@ class RuntimeStats extends RuntimeStatistics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ const RuntimeGraphics = require('.././r3-runtime-graphics.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -131,6 +131,10 @@ class RuntimeThree extends RuntimeGraphics {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +155,7 @@ class RuntimeThree extends RuntimeGraphics {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ const Event = require('.././r3-event.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
- initialize()
|
||||||
Should raise an event(s) which indicates that this object initialized
|
Should raise an event(s) which indicates that this object initialized
|
||||||
|
|
||||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||||
|
@ -94,6 +94,10 @@ class Runtime extends Event {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -114,7 +118,7 @@ class Runtime extends Event {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ const System = require('./r3-system.js');
|
||||||
CUSTOM_EVENT_LISTENERS_END
|
CUSTOM_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_START
|
CUSTOM_STATIC_EVENT_LISTENERS_START
|
||||||
|
Event.GET_RUNTIME
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
|
@ -116,6 +117,10 @@ class SystemRuntime extends System {
|
||||||
//GENERATED_STATIC_START_METHOD_START
|
//GENERATED_STATIC_START_METHOD_START
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENERS_START_START
|
//GENERATED_STATIC_EVENT_LISTENERS_START_START
|
||||||
|
SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe(
|
||||||
|
Event.GET_RUNTIME,
|
||||||
|
SystemRuntime.OnGetRuntime
|
||||||
|
);
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENERS_START_END
|
//GENERATED_STATIC_EVENT_LISTENERS_START_END
|
||||||
|
|
||||||
|
@ -143,6 +148,9 @@ class SystemRuntime extends System {
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENERS_STOP_START
|
//GENERATED_STATIC_EVENT_LISTENERS_STOP_START
|
||||||
|
SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
|
||||||
|
delete SystemRuntime.Subscriptions['GET_RUNTIME'];
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENERS_STOP_END
|
//GENERATED_STATIC_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
//CUSTOM_BEFORE_STATIC_SYSTEM_STOP_START
|
//CUSTOM_BEFORE_STATIC_SYSTEM_STOP_START
|
||||||
|
@ -164,6 +172,22 @@ class SystemRuntime extends System {
|
||||||
//GENERATED_EVENT_LISTENER_METHODS_END
|
//GENERATED_EVENT_LISTENER_METHODS_END
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENER_METHODS_START
|
//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
|
//GENERATED_STATIC_EVENT_LISTENER_METHODS_END
|
||||||
|
|
||||||
//CUSTOM_IMPLEMENTATION_START
|
//CUSTOM_IMPLEMENTATION_START
|
||||||
|
|
|
@ -10,7 +10,7 @@ const Event = require('./r3-event');
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -47,7 +47,7 @@ class Utils {
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
@ -1295,21 +1295,23 @@ class Utils {
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialized()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raise an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialized() {
|
initialize() {
|
||||||
|
|
||||||
//GENERATED_INITIALIZED_METHOD_START
|
//GENERATED_INITIALIZE_METHOD_START
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
if (this.initialized) {
|
||||||
delete this.callDepth;
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
} else {
|
} 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_INITIALIZED_METHOD_END
|
|
||||||
|
//CUSTOM_INITIALIZE_METHOD_START
|
||||||
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.initialized === 'undefined') {
|
||||||
|
options.initialized = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof options.callDepth === 'undefined') {
|
if (typeof options.callDepth === 'undefined') {
|
||||||
options.callDepth = 0;
|
options.callDepth = 0;
|
||||||
} else {
|
} else {
|
||||||
|
@ -24,7 +28,7 @@
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialized();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
options.callDepth--;
|
options.callDepth--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
|
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
|
||||||
|
|
||||||
this.getRuntime().createInstance(
|
this.setRuntime();
|
||||||
this,
|
|
||||||
{
|
this.runtime.createInstance(this);
|
||||||
//GENERATED_CREATE_INSTANCE_OPTIONS_START
|
|
||||||
//GENERATED_CREATE_INSTANCE_OPTIONS_END
|
|
||||||
}
|
|
||||||
)
|
|
||||||
this.emit(Event.INSTANCE_CREATED, this);
|
this.emit(Event.INSTANCE_CREATED, this);
|
|
@ -0,0 +1,6 @@
|
||||||
|
if (this.initialized) {
|
||||||
|
console.warn('Multiple calls to initialize() - check your callstack');
|
||||||
|
} else {
|
||||||
|
delete this.callDepth;
|
||||||
|
this.initialized = true;
|
||||||
|
}
|
|
@ -1,5 +0,0 @@
|
||||||
if (this.hasOwnProperty('callDepth')) {
|
|
||||||
delete this.callDepth;
|
|
||||||
} else {
|
|
||||||
console.warn('Multiple calls to initialized() - check your callstack');
|
|
||||||
}
|
|
|
@ -11,7 +11,7 @@ const Utils = require('INCLUDE_PATH/r3-utils');
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
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_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
|
|
@ -12,15 +12,15 @@ GENERATED_EVENT_LISTENERS_START
|
||||||
GENERATED_EVENT_LISTENERS_STOP
|
GENERATED_EVENT_LISTENERS_STOP
|
||||||
GENERATED_EVENTS
|
GENERATED_EVENTS
|
||||||
GENERATED_EXPORTS
|
GENERATED_EXPORTS
|
||||||
GENERATED_GET_RUNTIME_METHOD
|
|
||||||
GENERATED_IMPORTS
|
GENERATED_IMPORTS
|
||||||
GENERATED_INDEX_BODY
|
GENERATED_INDEX_BODY
|
||||||
GENERATED_INHERITED
|
GENERATED_INHERITED
|
||||||
GENERATED_INITIALIZED_METHOD
|
GENERATED_INITIALIZE_METHOD
|
||||||
GENERATED_METHOD_NAME_UPPERCASE_METHOD
|
GENERATED_METHOD_NAME_UPPERCASE_METHOD
|
||||||
GENERATED_METHODS
|
GENERATED_METHODS
|
||||||
GENERATED_OPTIONS_INIT
|
GENERATED_OPTIONS_INIT
|
||||||
GENERATED_OUT_OF_CLASS_IMPLEMENTATION
|
GENERATED_OUT_OF_CLASS_IMPLEMENTATION
|
||||||
|
GENERATED_SET_RUNTIME_METHOD
|
||||||
GENERATED_STATIC_ASYNC_METHOD
|
GENERATED_STATIC_ASYNC_METHOD
|
||||||
GENERATED_STATIC_EMIT_METHOD
|
GENERATED_STATIC_EMIT_METHOD
|
||||||
GENERATED_STATIC_EVENT_LISTENER_METHODS
|
GENERATED_STATIC_EVENT_LISTENER_METHODS
|
||||||
|
@ -29,6 +29,7 @@ GENERATED_STATIC_EVENT_LISTENERS_STOP
|
||||||
GENERATED_STATIC_METHOD_NAME_UPPERCASE_METHOD
|
GENERATED_STATIC_METHOD_NAME_UPPERCASE_METHOD
|
||||||
GENERATED_STATIC_METHODS
|
GENERATED_STATIC_METHODS
|
||||||
GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
|
GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
|
||||||
|
GENERATED_STATIC_ON_GET_RUNTIME_METHOD
|
||||||
GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD
|
GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD
|
||||||
GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD
|
GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD
|
||||||
GENERATED_STATIC_ON_KEYBOARD_UP_METHOD
|
GENERATED_STATIC_ON_KEYBOARD_UP_METHOD
|
||||||
|
@ -64,9 +65,8 @@ CUSTOM_DISPOSE_METHOD
|
||||||
CUSTOM_EMIT_METHOD
|
CUSTOM_EMIT_METHOD
|
||||||
CUSTOM_EVENT_LISTENERS
|
CUSTOM_EVENT_LISTENERS
|
||||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS
|
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS
|
||||||
CUSTOM_GET_RUNTIME_METHOD
|
|
||||||
CUSTOM_IMPLEMENTATION
|
CUSTOM_IMPLEMENTATION
|
||||||
CUSTOM_INITIALIZED_METHOD
|
CUSTOM_INITIALIZE_METHOD
|
||||||
CUSTOM_INSTANCE_OPTIONS_MAPPING
|
CUSTOM_INSTANCE_OPTIONS_MAPPING
|
||||||
CUSTOM_LINKED_OBJECTS
|
CUSTOM_LINKED_OBJECTS
|
||||||
CUSTOM_METHOD_NAME_UPPERCASE_METHOD
|
CUSTOM_METHOD_NAME_UPPERCASE_METHOD
|
||||||
|
@ -74,12 +74,14 @@ CUSTOM_METHODS
|
||||||
CUSTOM_OPTIONS
|
CUSTOM_OPTIONS
|
||||||
CUSTOM_OPTIONS_INIT
|
CUSTOM_OPTIONS_INIT
|
||||||
CUSTOM_OUT_OF_CLASS_IMPLEMENTATION
|
CUSTOM_OUT_OF_CLASS_IMPLEMENTATION
|
||||||
|
CUSTOM_SET_RUNTIME_METHOD
|
||||||
CUSTOM_STATIC_ASYNC_METHOD
|
CUSTOM_STATIC_ASYNC_METHOD
|
||||||
CUSTOM_STATIC_EMIT_METHOD
|
CUSTOM_STATIC_EMIT_METHOD
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS
|
CUSTOM_STATIC_EVENT_LISTENERS
|
||||||
CUSTOM_STATIC_METHOD_NAME_UPPERCASE_METHOD
|
CUSTOM_STATIC_METHOD_NAME_UPPERCASE_METHOD
|
||||||
CUSTOM_STATIC_METHODS
|
CUSTOM_STATIC_METHODS
|
||||||
CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
|
CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
|
||||||
|
CUSTOM_STATIC_ON_GET_RUNTIME_METHOD
|
||||||
CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD
|
CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD
|
||||||
CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD
|
CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD
|
||||||
CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD
|
CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD
|
||||||
|
|
Loading…
Reference in New Issue