File tree 1 file changed +4
-14
lines changed
1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 4
4
*/
5
5
/*#ifndef(UMD)*/
6
6
"use strict" ;
7
- /*global _GpfClassDefinition*/ // Class definition
8
- /*global _gpfDefineClassImported*/ // Base dictionary for all imported classes
9
- /*global _gpfDefineEntitiesAdd*/ // Store the entity definition to be retreived later
7
+ /*global _gpfDefineClassImportFrom*/ // Import a class as an entity definition (internal)
10
8
/*global _gpfObjectForEach*/ // Similar to [].forEach but for objects
11
9
/*#endif*/
12
10
13
11
function _gpfDefineClassStandardGetDictionary ( name ) {
14
- return Object . assign ( Object . create ( _gpfDefineClassImported ) , {
12
+ return {
15
13
$name : name
16
- } ) ;
17
- }
18
-
19
- function _gpfDefineClassStandardBuildEntityDefinition ( InstanceBuilder , name ) {
20
- return Object . assign ( new _GpfClassDefinition ( _gpfDefineClassStandardGetDictionary ( name ) ) , {
21
- _instanceBuilder : InstanceBuilder
22
- } ) ;
14
+ } ;
23
15
}
24
16
25
17
function _gpfDefineClassStandardPatchDefinition ( entityDefinition ) {
@@ -30,9 +22,7 @@ function _gpfDefineClassStandardPatchDefinition (entityDefinition) {
30
22
}
31
23
32
24
function _gpfDefineClassStandardInstallEntityDefinition ( InstanceBuilder , name ) {
33
- var entityDefinition = _gpfDefineClassStandardBuildEntityDefinition ( InstanceBuilder , name ) ;
34
- _gpfDefineEntitiesAdd ( entityDefinition ) ;
35
- entityDefinition . check ( ) ;
25
+ var entityDefinition = _gpfDefineClassImportFrom ( InstanceBuilder , _gpfDefineClassStandardGetDictionary ( name ) ) ;
36
26
_gpfDefineClassStandardPatchDefinition ( entityDefinition ) ;
37
27
}
38
28
You can’t perform that action at this time.
0 commit comments