Skip to content

Commit

Permalink
Uniqueness of AttributeAttribute (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Sep 8, 2018
1 parent 25dd93c commit bbdf179
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/attributes/attributeattribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"use strict";
/*global _gpfAttribute*/ // Shortcut for gpf.attributes.Attribute
/*global _gpfAttributesCheckAppliedOnBaseClass*/ // Ensures attribute is applied on a specific base class
/*global _gpfAttributesCheckAppliedOnlyOnce*/ // Ensures attribute is used only once
/*global _gpfAttributesCheckClassOnly*/ // Ensures attribute is used only at class level
/*global _gpfCreateAbstractFunction*/ // Build a function that throws the abstractMethod exception
/*global _gpfDefine*/ // Shortcut for gpf.define
Expand All @@ -14,7 +15,7 @@
/*#endif*/

/**
* Attribute to restrict the use of an attribute to the class level
* Attribute for attributes
*
* @class gpf.attributes.AttributeAttribute
* @private
Expand All @@ -32,6 +33,7 @@ var _gpfAttributesAttributeAttribute = _gpfDefine({
_check: function (member, classDefinition) {
_gpfAttributesCheckClassOnly(member);
_gpfAttributesCheckAppliedOnBaseClass(classDefinition, _gpfAttribute);
_gpfAttributesCheckAppliedOnlyOnce(member, classDefinition, this.constructor);
},

/**
Expand Down

0 comments on commit bbdf179

Please sign in to comment.