diff options
| author | Igor Minar | 2012-03-27 08:53:44 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-28 16:30:38 -0700 |
| commit | a8a750ab05bdff73ba3af0b98f3f284ff8d1e743 (patch) | |
| tree | 45ce8a144d8c35dac273de7cd6dd640b49367599 /test/JsonSpec.js | |
| parent | 13a95ae499661b70a9c24691ded709fbf1e90293 (diff) | |
| download | angular.js-a8a750ab05bdff73ba3af0b98f3f284ff8d1e743.tar.bz2 | |
feat($http): make the transform defaults to an array
$httpProvider.defaults.transformRequest and $httpProvider.defaults.transformResponse
are now arrays containing single function. This makes it easy to add an
extra transform fn.
adding an extra fn before had to be done in this cluncky way:
$httpProvider.defaults.transformResponse =
[$httpProvider.defaults.transformResponse, myTransformFn];
after this change, it's simply:
$httpProvider.defaults.transformResponse.push(myTransformFn);
Diffstat (limited to 'test/JsonSpec.js')
0 files changed, 0 insertions, 0 deletions
