Permalink
Browse files

style(crud): fix spelling error

  • Loading branch information...
1 parent c227570 commit 5df7bef66bb36999fbfac42b4fec9edfe833a5e6 @petebacondarwin petebacondarwin committed Jul 17, 2013
Showing with 6 additions and 6 deletions.
  1. +3 −3 client/src/common/directives/crud/edit.js
  2. +3 −3 client/src/common/services/crud.js
@@ -86,10 +86,10 @@ angular.module('directives.crud.edit', [])
* @return {object} A hash where each key is a CSS class and the corresponding value is true if the class is to be applied.
*/
scope.getCssClasses = function(fieldName) {
- var ngModelContoller = form[fieldName];
+ var ngModelController = form[fieldName];
return {
- error: ngModelContoller.$invalid && !angular.equals(resource, original),
- success: ngModelContoller.$valid && !angular.equals(resource, original)
+ error: ngModelController.$invalid && !angular.equals(resource, original),
+ success: ngModelController.$valid && !angular.equals(resource, original)
};
};
/**
@@ -42,10 +42,10 @@ angular.module('services.crud').factory('crudEditMethods', function () {
* @return {object} A hash where each key is a CSS class and the corresponding value is true if the class is to be applied.
*/
mixin.getCssClasses = function(fieldName) {
- var ngModelContoller = this[formName][fieldName];
+ var ngModelController = this[formName][fieldName];
return {
- error: ngModelContoller.$invalid && ngModelContoller.$dirty,
- success: ngModelContoller.$valid && ngModelContoller.$dirty
+ error: ngModelController.$invalid && ngModelController.$dirty,
+ success: ngModelController.$valid && ngModelController.$dirty
};
};

0 comments on commit 5df7bef

Please sign in to comment.