Skip to content

Commit

Permalink
Fix backward compatibility (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Mar 2, 2019
1 parent f0d93e8 commit fbda07b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/define/class/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/*global _GpfClassDefinition*/ // Class definition
/*global _gpfDefineEntitiesAdd*/ // Store the entity definition to be retreived later
/*global _gpfDefineEntitiesFindByConstructor*/ // Retrieve entity definition from Constructor
/*global _gpfEmptyFunc*/
/*exported _gpfDefineClassImport*/ // Import a class as an entity definition
/*exported _gpfDefineClassImported*/ // Base dictionary for all imported classes
/*#endif*/
Expand All @@ -25,6 +26,9 @@ function _gpfDefineClassImportFrom (instanceBuilder) {
var entityDefinition = new _GpfClassDefinition(_gpfDefineClassImportGetDictionary(instanceBuilder));
entityDefinition._instanceBuilder = instanceBuilder;
_gpfDefineEntitiesAdd(entityDefinition);
// Since it might not even have a name
entityDefinition._checkNameIsNotEmpty = _gpfEmptyFunc;
entityDefinition._checkName = _gpfEmptyFunc;
entityDefinition.check();
return entityDefinition;
}
Expand Down

0 comments on commit fbda07b

Please sign in to comment.