Skip to content

Commit ac95300

Browse files
committed
release(0.1.10): move set form pristine to postCompile
1 parent 0f8f9b3 commit ac95300

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-keep-values",
3-
"version": "0.1.9",
3+
"version": "0.1.10",
44
"authors": [
55
"Emilio Blanco <emilioeduardob@gmail.com>",
66
"Jaime Bunzli <jpbunzli@gmail.com>",

dist/angular-keep-values.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Keep your input values in your ngModels
3-
* @version v0.1.9 - 2015-07-07
3+
* @version v0.1.10 - 2015-07-07
44
* @link https://github.com/platanus/angular-keep-values
55
* @author Emilio Blanco <emilioeduardob@gmail.com>, Jaime Bunzli <jpbunzli@gmail.com>, René Morales <rene.morales.sanchez@gmail.com>
66
* @license MIT License, http://www.opensource.org/licenses/MIT
@@ -101,7 +101,7 @@ function keepInputValues($compile) {
101101
});
102102
});
103103

104-
function preCompile(scope, element, attrs){
104+
function postCompile(scope, element, attrs){
105105
if(element[0].tagName === 'FORM') {
106106
setPristine(attrs.name);
107107
} else {
@@ -117,7 +117,7 @@ function keepInputValues($compile) {
117117
}
118118

119119
return {
120-
pre: preCompile
120+
post: postCompile
121121
};
122122
}
123123
}

dist/angular-keep-values.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)