perf(change_detection): do not check intermediate results

This commit is contained in:
vsavkin
2015-07-28 15:57:05 -07:00
parent f7d7789915
commit c1ee943533
13 changed files with 299 additions and 70 deletions
@@ -38,9 +38,8 @@ class _MyComponent_ChangeDetector0
var l_context = this.context,
l_myNum0,
c_myNum0,
l_interpolate1,
c_interpolate1;
c_myNum0 = c_interpolate1 = false;
l_interpolate1;
c_myNum0 = false;
var isChanged = false;
var changes = null;
@@ -56,7 +55,6 @@ class _MyComponent_ChangeDetector0
l_interpolate1 =
"Salad: " "${l_myNum0 == null ? "" : l_myNum0}" " is awesome";
if (_gen.looseNotIdentical(l_interpolate1, this.interpolate1)) {
c_interpolate1 = true;
if (throwOnChange) {
_gen.ChangeDetectionUtil.throwOnChange(this.currentProto,
_gen.ChangeDetectionUtil.simpleChange(
@@ -68,8 +66,6 @@ class _MyComponent_ChangeDetector0
this.interpolate1 = l_interpolate1;
}
} else {
l_interpolate1 = this.interpolate1;
}
changes = null;