aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/input.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/directive/input.js')
-rw-r--r--src/ng/directive/input.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index c280b7c2..00c1c821 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -407,7 +407,7 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
});
}
- var listener = function(ev) {
+ var listener = function() {
if (composing) return;
var value = element.val();
@@ -419,11 +419,7 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
}
if (ctrl.$viewValue !== value) {
- // If an event was performed natively, jQuery sets the isTrigger property.
- // When triggering event manually, the field is not present. Manually
- // triggered events are performed synchronously which causes the "$digest
- // already in progress" error.
- if (ev && ev.isTrigger) {
+ if (scope.$$phase) {
ctrl.$setViewValue(value);
} else {
scope.$apply(function() {