Skip to content

Commit fbda07b

Browse files
Fix backward compatibility (#296)
1 parent f0d93e8 commit fbda07b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/define/class/import.js

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/*global _GpfClassDefinition*/ // Class definition
88
/*global _gpfDefineEntitiesAdd*/ // Store the entity definition to be retreived later
99
/*global _gpfDefineEntitiesFindByConstructor*/ // Retrieve entity definition from Constructor
10+
/*global _gpfEmptyFunc*/
1011
/*exported _gpfDefineClassImport*/ // Import a class as an entity definition
1112
/*exported _gpfDefineClassImported*/ // Base dictionary for all imported classes
1213
/*#endif*/
@@ -25,6 +26,9 @@ function _gpfDefineClassImportFrom (instanceBuilder) {
2526
var entityDefinition = new _GpfClassDefinition(_gpfDefineClassImportGetDictionary(instanceBuilder));
2627
entityDefinition._instanceBuilder = instanceBuilder;
2728
_gpfDefineEntitiesAdd(entityDefinition);
29+
// Since it might not even have a name
30+
entityDefinition._checkNameIsNotEmpty = _gpfEmptyFunc;
31+
entityDefinition._checkName = _gpfEmptyFunc;
2832
entityDefinition.check();
2933
return entityDefinition;
3034
}

0 commit comments

Comments
 (0)