Permalink
Browse files

Add a new ‘dependencies’ attribute

  • Loading branch information...
1 parent c894b74 commit b41eb0243d5e8a03a12311a26956924682705ce4 @Baggz committed Mar 14, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/engines/json/attributes/dependencies.js
View
13 src/engines/json/attributes/dependencies.js
@@ -0,0 +1,13 @@
+(function() {
+
+ /**
+ * Dependencies
+ */
+ var attribute = function dependencies(property, propertyValue, attributeValue, propertyAttributes, callback) {
+ return this.validateSchema(this.instance, attributeValue, '', callback);
+ };
+
+ // Export
+ Validation.prototype.addAttribute('dependencies', attribute);
+
+}());

0 comments on commit b41eb02

Please sign in to comment.