angular/modules/@angular/upgrade/src
Tobias Bosch db49d422f2 refactor(compiler): generate less code for bindings to DOM elements
Detailed changes:
- remove `UNINITIALIZED`, initialize change detection fields with `undefined`.
  * we use `view.numberOfChecks === 0` now everywhere
    as indicator whether we are in the first change detection cycle
    (previously we used this only in a couple of places).
  * we keep the initialization itself as change detection get slower without it.
- remove passing around `throwOnChange` in various generated calls,
  and store it on the view as property instead.
- change generated code for bindings to DOM elements as follows:
  Before:
  ```
  var currVal_10 = self.context.bgColor;
  if (jit_checkBinding15(self.throwOnChange,self._expr_10,currVal_10)) {
    self.renderer.setElementStyle(self._el_0,'backgroundColor',((self.viewUtils.sanitizer.sanitize(jit_21,currVal_10) == null)? null: self.viewUtils.sanitizer.sanitize(jit_21,currVal_10).toString()));
    self._expr_10 = currVal_10;
  }
  var currVal_11 = jit_inlineInterpolate16(1,' ',self.context.data.value,' ');
  if (jit_checkBinding15(self.throwOnChange,self._expr_11,currVal_11)) {
    self.renderer.setText(self._text_1,currVal_11);
    self._expr_11 = currVal_11;
  }
  ```,
  After:
  ```
  var currVal_10 = self.context.bgColor;
  jit_checkRenderStyle14(self,self._el_0,'backgroundColor',null,self._expr_10,self._expr_10=currVal_10,false,jit_21);
  var currVal_11 = jit_inlineInterpolate15(1,' ',self.context.data.value,' ');
  jit_checkRenderText16(self,self._text_1,self._expr_11,self._expr_11=currVal_11,false);
  ```

Performance impact:
- None seen (checked against internal latency lab)

Part of #13651
2017-01-03 13:05:05 -08:00
..
aot refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
angular_js.ts chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
constants.ts fix(upgrade): fix downgrade content projection and injector inheritance 2016-12-14 13:02:27 -08:00
downgrade_ng2_adapter.ts refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
facade feat(ngUpgrade): add support for AoT compiled upgrade applications 2016-10-19 15:27:49 -07:00
metadata.ts refactor(): use const and let instead of var 2016-11-12 16:40:17 -08:00
upgrade.ts fix: display framework version on bootstrapped component (#13252) 2016-12-06 16:21:07 -08:00
upgrade_adapter.ts fixed minor typo (#13626) 2016-12-22 12:36:24 -08:00
upgrade_ng1_adapter.ts fix(upgrade): fix/improve support for lifecycle hooks (#13020) 2016-12-27 14:42:53 -08:00
util.ts fix(Compiler): allow "." in attribute selectors (#13653) 2016-12-27 15:23:49 -08:00
version.ts fix: display framework version on bootstrapped component (#13252) 2016-12-06 16:21:07 -08:00