angular.js/test
Igor Minar 5dc35b527b fix($parse): deprecate promise unwrapping and make it an opt-in
This commit disables promise unwrapping and adds
$parseProvider.unwrapPromises() getter/setter api that allows developers
to turn the feature back on if needed. Promise unwrapping support will
be removed from Angular in the future and this setting only allows for
enabling it during transitional period.

If the unwrapping is enabled, Angular will log a warning about each
expression that unwraps a promise (to reduce the noise, each expression
is logged only onces). To disable this logging use
`$parseProvider.logPromiseWarnings(false)`.

Previously promises found anywhere in the expression during expression
evaluation would evaluate to undefined while unresolved and to the
fulfillment value if fulfilled.

This is a feature that didn't prove to be wildly useful or popular,
primarily because of the dichotomy between data access in templates
(accessed as raw values) and controller code (accessed as promises).

In most code we ended up resolving promises manually in controllers
or automatically via routing and unifying the model access in this way.

Other downsides of automatic promise unwrapping:

- when building components it's often desirable to receive the
  raw promises
- adds complexity and slows down expression evaluation
- makes expression code pre-generation unattractive due to the
  amount of code that needs to be generated
- makes IDE auto-completion and tool support hard
- adds too much magic

BREAKING CHANGE: $parse and templates in general will no longer
automatically unwrap promises. This feature has been deprecated and
if absolutely needed, it can be reenabled during transitional period
via `$parseProvider.unwrapPromises(true)` api.

Closes #4158
Closes #4270
2013-10-09 15:15:43 -07:00
..
auto fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
helpers fix(jqLite): use get/setAttribute so that jqLite works on SVG nodes 2013-09-27 12:38:27 -07:00
ng fix($parse): deprecate promise unwrapping and make it an opt-in 2013-10-09 15:15:43 -07:00
ngAnimate fix($animator): avoid completing the animation asynchronously unless CSS transtiions/animations are present 2013-10-01 15:00:16 -04:00
ngCookies feat($cookieStore): $cookieStore.get now parses blank string as blank string 2013-05-08 10:04:07 +01:00
ngMock feat($interval): add a service wrapping setInterval 2013-10-07 13:45:40 -07:00
ngResource fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
ngRoute fix(routeProvider): parametrized routes do not match against locations that would not valorize each parameters. 2013-10-04 08:45:47 -07:00
ngSanitize fix($sanitize): sanitize DOCTYPE declarations correctly 2013-10-03 08:42:15 +01:00
ngScenario test($browser): correct false positive in ApplicationSpec.js 2013-09-11 22:19:24 +01:00
ngTouch fix(ngTouch): add $event to ng-swipe 2013-10-08 12:55:16 +01:00
AngularSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
ApiSpecs.js feat(ngRepeat): add support for custom tracking of items 2013-03-29 23:01:52 -07:00
BinderSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
jqLiteSpec.js fix(ngTouch): ngClick does not pass touchend event when jQuery is loaded 2013-10-08 09:14:33 -07:00
jquery_alias.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jquery_remove.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jQueryPatchSpec.js feat(jqLite): switch bind/unbind to more recent jQuery on/off 2013-06-19 20:53:24 +01:00
loaderSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
minErrSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00