Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Commit cbe32b0

Browse files
author
AngularUI (via TravisCI)
committed
Travis commit : build 420
1 parent cd6758f commit cbe32b0

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

ui-utils-ieshiv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-ui-utils - Swiss-Army-Knife of AngularJS tools (with no external dependencies!)
3-
* @version v0.2.1 - 2015-02-17
3+
* @version v0.2.1 - 2015-02-18
44
* @link http://angular-ui.github.com
55
* @license MIT License, http://www.opensource.org/licenses/MIT
66
*/

ui-utils-ieshiv.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-utils.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-ui-utils - Swiss-Army-Knife of AngularJS tools (with no external dependencies!)
3-
* @version v0.2.1 - 2015-02-17
3+
* @version v0.2.1 - 2015-02-18
44
* @link http://angular-ui.github.com
55
* @license MIT License, http://www.opensource.org/licenses/MIT
66
*/
@@ -745,15 +745,13 @@ angular.module('ui.mask', [])
745745
if (linkOptions.clearOnBlur) {
746746
oldCaretPosition = 0;
747747
oldSelectionLength = 0;
748-
}
749-
if (!isValid || value.length === 0) {
750-
if (linkOptions.clearOnBlur) {
748+
if (!isValid || value.length === 0) {
751749
valueMasked = '';
752750
iElement.val('');
751+
scope.$apply(function () {
752+
controller.$setViewValue('');
753+
});
753754
}
754-
scope.$apply(function (){
755-
controller.$setViewValue('');
756-
});
757755
}
758756
}
759757

0 commit comments

Comments
 (0)