Permalink
Browse files

Allow integer attributes to be created by the type name 'integer' (as…

… well as the previous type name of 'int')
  • Loading branch information...
1 parent bdea268 commit 35c00bfc4b87673bbd68b65ff773788bb58b78b2 @gregjacobs committed Mar 21, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −0 kevlar.js
  2. +1 −1 kevlar.min.js
  3. +2 −1 src/attribute/IntegerAttribute.js
View
@@ -2781,6 +2781,7 @@ Kevlar.attribute.IntegerAttribute = Kevlar.attribute.Attribute.extend( {
// Register the Attribute type
Kevlar.attribute.Attribute.registerType( 'int', Kevlar.attribute.IntegerAttribute );
+Kevlar.attribute.Attribute.registerType( 'integer', Kevlar.attribute.IntegerAttribute );
/**
* @class Kevlar.attribute.MixedAttribute
Oops, something went wrong.

0 comments on commit 35c00bf

Please sign in to comment.