Skip to content

Commit

Permalink
style(crud): fix spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Jul 17, 2013
1 parent c227570 commit 5df7bef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/src/common/directives/crud/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
};
/**
Expand Down
6 changes: 3 additions & 3 deletions client/src/common/services/crud.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
};

Expand Down

0 comments on commit 5df7bef

Please sign in to comment.