Skip to content

Commit

Permalink
FIX #291
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Oct 16, 2018
1 parent 578fc41 commit ad029db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/define/class/attributes/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
"use strict";
/*global _GpfClassDefinition*/ // Class definition
/*global _gpfDefClassAttrIsAttributeSpecification*/ // Check if member name is an attribute
/*global _gpfDefineGetEntityFromBuilder*/ // Retrieves entity definition from instance instance builder
/*#endif*/

var _gpfDefClassAttrClassAddmemberToPrototype = _GpfClassDefinition.prototype._addMemberToPrototype,
_gpfDefClassAttrClassBuildPrototype = _GpfClassDefinition.prototype._buildPrototype;

function _gpfDefClassAttrBuild (member, attribute, newPrototype) {
/*jshint validthis:true*/
attribute._memberName = member;
attribute._ClassConstructor = newPrototype.constructor;
var attributeEntityDefinition = _gpfDefineGetEntityFromBuilder(attribute.constructor);
if (!attributeEntityDefinition._singleton) {
attribute._memberName = member;
attribute._ClassConstructor = newPrototype.constructor;
}
attribute._build(member, this, newPrototype); //eslint-disable-line no-invalid-this
}

Expand Down

0 comments on commit ad029db

Please sign in to comment.