645f3f28 by Adam Heath

Even when there is no target, we should note the path as being seen.

1 parent 3c1a9693
...@@ -43,9 +43,7 @@ define(function(require) { ...@@ -43,9 +43,7 @@ define(function(require) {
43 render(el, 'focus', false); 43 render(el, 'focus', false);
44 }, 44 },
45 blur: function() { 45 blur: function() {
46 if (observer.target) { 46 holder.seen[observer.key.path] = true;
47 holder.seen[observer.key.path] = true;
48 }
49 render(el, 'blur', false); 47 render(el, 'blur', false);
50 if (observer.target) { 48 if (observer.target) {
51 observer.target.validate(); 49 observer.target.validate();
...@@ -53,7 +51,7 @@ define(function(require) { ...@@ -53,7 +51,7 @@ define(function(require) {
53 }, 51 },
54 validated: function(isValid, model, errors) { 52 validated: function(isValid, model, errors) {
55 var errorList = errors[observer.key.path]; 53 var errorList = errors[observer.key.path];
56 if (errorList && observer.target && holder.seen[holder.observer.key.path]) { 54 if (errorList && holder.seen[holder.observer.key.path]) {
57 render(el, 'validated', errorList); 55 render(el, 'validated', errorList);
58 } else { 56 } else {
59 render(el, 'validated', false); 57 render(el, 'validated', false);
......