Skip to content

Commit

Permalink
feat(form): add ability to reset a form to its pristine state - corre…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
pkozlowski-opensource committed Jul 10, 2012
1 parent 28a1bf9 commit df35bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ng/directive/form.js
Expand Up @@ -129,8 +129,8 @@ function FormController(element, attrs) {
* Sets the form to its pristine state.
*
* This method can be called to remove the 'ng-dirty' class and set the form to its pristine
* state (ng-pristine class). Calling this method will also affect all the controls contained in
* this form.
* state (ng-pristine class). This method will also propagate to all the controls contained
* in this form.
*
* Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
* saving or resetting it.
Expand Down
2 changes: 1 addition & 1 deletion test/ng/directive/formSpec.js
Expand Up @@ -341,7 +341,7 @@ describe('form', function() {

it('should set form and controls to the pristine state', function() {

var form = scope.form, input = doc.find('input').eq(0)
var form = scope.form, input = doc.find('input').eq(0);

control.$setViewValue('');
scope.$apply();
Expand Down

0 comments on commit df35bb7

Please sign in to comment.