Skip to content
Browse files

Convert the export variables to lowercase

  • Loading branch information...
1 parent fb25075 commit 6e74bc9ba2e74c63653b0d900c53bc5fed450434 @Baggz committed Mar 15, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/amanda.js
View
13 src/amanda.js
@@ -1,4 +1,4 @@
-var Amanda = function(engine) {
+var amanda = function(engine) {
if (!hasProperty(engines, engine)) {
throw new Error('The ‘' + engine + '’ engine is not supported. Please use a different one.');
@@ -13,7 +13,7 @@ var Amanda = function(engine) {
*
* This method is deprecated, please use ‘amanda('json').validate’ instead.
*/
-Amanda.validate = function(instance, schema, options, callback) {
+amanda.validate = function(instance, schema, options, callback) {
var json = engines.json;
return json.validate.apply(json, arguments);
};
@@ -23,17 +23,20 @@ Amanda.validate = function(instance, schema, options, callback) {
*
* This method is deprecated, please use ‘amanda('json').addValidator’ instead.
*/
-Amanda.addValidator = function(attributeName, attributeFn) {
+amanda.addValidator = function(attributeName, attributeFn) {
var json = engines.json;
return json.addAttribute.apply(json, arguments);
};
+amanda.getVersion = '';
+amanda.getValidators = '';
+
/**
* Amanda.addAttribute
*
* This method is deprecated, please use ‘amanda('json').addAttribute’ instead.
*/
-Amanda.addAttribute = function(attributeName, attributeFn) {
+amanda.addAttribute = function(attributeName, attributeFn) {
var json = engines.json;
return json.addAttribute.apply(json, arguments);
};
@@ -43,7 +46,7 @@ Amanda.addAttribute = function(attributeName, attributeFn) {
*
* This method is deprecated, please use ‘amanda('json').addAttributeConstructor’ instead.
*/
-Amanda.addAttributeConstructor = function(attributeName, attributeConstructor) {
+amanda.addAttributeConstructor = function(attributeName, attributeConstructor) {
var json = engines.json;
return json.addAttributeConstructor.apply(json, arguments);
};

0 comments on commit 6e74bc9

Please sign in to comment.
Something went wrong with that request. Please try again.