angular-cn/tools
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
..
@angular/tsc-wrapped chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
build chore(build): remove unused build/util 2016-11-07 10:32:00 -08:00
cjs-jasmine docs(Location): updating Location docs and adding example 2016-12-12 11:19:21 -08:00
code.angularjs.org build(publish): remove unneeded add-license-to-rx (#12734) 2016-11-10 15:56:14 -08:00
karma refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
npm chore(npm): clean up clean-shrinkwrap script 2016-10-31 11:26:59 -07:00
public_api_guard refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
travis refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tree-shaking-test refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
tsc-watch refactor(compiler): drop old codegen tests that run inside of `test.sh` 2016-11-28 15:19:23 -08:00
tslint chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
typings-test style: add missing semicolons 2016-10-31 14:25:53 -07:00
check-environment.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
chromedriverpatch.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
tsconfig.json fix(packages): use ES modules for primary build (#11120) 2016-08-30 18:07:40 -07:00
types.d.ts fix(fakeAsync): have fakeAsync use Proxy zone. (#10797) 2016-08-19 12:10:53 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00