Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit ad07af0

Browse files
committed
v1.5.0-build.4248+sha.106f90a
1 parent f94c7ce commit ad07af0

40 files changed

+499
-301
lines changed

snapshot/angular-animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-animate.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-aria.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-aria.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-cookies.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-cookies.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-loader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -59,7 +59,7 @@ function minErr(module, ErrorConstructor) {
5959
return match;
6060
});
6161

62-
message += '\nhttp://errors.angularjs.org/1.5.0-build.4247+sha.86e8088/' +
62+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4248+sha.106f90a/' +
6363
(module ? module + '/' : '') + code;
6464

6565
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {

snapshot/angular-loader.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-message-format.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-message-format.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-messages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-messages.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-resource.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-resource.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-route.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-sanitize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-sanitize.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-scenario.js

+36-8
Original file line numberDiff line numberDiff line change
@@ -9190,7 +9190,7 @@ return jQuery;
91909190
}));
91919191

91929192
/**
9193-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
9193+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
91949194
* (c) 2010-2015 Google, Inc. http://angularjs.org
91959195
* License: MIT
91969196
*/
@@ -9249,7 +9249,7 @@ function minErr(module, ErrorConstructor) {
92499249
return match;
92509250
});
92519251

9252-
message += '\nhttp://errors.angularjs.org/1.5.0-build.4247+sha.86e8088/' +
9252+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4248+sha.106f90a/' +
92539253
(module ? module + '/' : '') + code;
92549254

92559255
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
@@ -11533,6 +11533,7 @@ function toDebugString(obj) {
1153311533
$HttpParamSerializerProvider,
1153411534
$HttpParamSerializerJQLikeProvider,
1153511535
$HttpBackendProvider,
11536+
$xhrFactoryProvider,
1153611537
$LocationProvider,
1153711538
$LogProvider,
1153811539
$ParseProvider,
@@ -11570,7 +11571,7 @@ function toDebugString(obj) {
1157011571
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
1157111572
*/
1157211573
var version = {
11573-
full: '1.5.0-build.4247+sha.86e8088', // all of these placeholder strings will be replaced by grunt's
11574+
full: '1.5.0-build.4248+sha.106f90a', // all of these placeholder strings will be replaced by grunt's
1157411575
major: 1, // package task
1157511576
minor: 5,
1157611577
dot: 0,
@@ -11691,6 +11692,7 @@ function publishExternalAPI(angular) {
1169111692
$httpParamSerializer: $HttpParamSerializerProvider,
1169211693
$httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,
1169311694
$httpBackend: $HttpBackendProvider,
11695+
$xhrFactory: $xhrFactoryProvider,
1169411696
$location: $LocationProvider,
1169511697
$log: $LogProvider,
1169611698
$parse: $ParseProvider,
@@ -19775,15 +19777,41 @@ function $HttpProvider() {
1977519777
}];
1977619778
}
1977719779

19778-
function createXhr() {
19779-
return new window.XMLHttpRequest();
19780+
/**
19781+
* @ngdoc service
19782+
* @name $xhrFactory
19783+
*
19784+
* @description
19785+
* Factory function used to create XMLHttpRequest objects.
19786+
*
19787+
* Replace or decorate this service to create your own custom XMLHttpRequest objects.
19788+
*
19789+
* ```
19790+
* angular.module('myApp', [])
19791+
* .factory('$xhrFactory', function() {
19792+
* return function createXhr(method, url) {
19793+
* return new window.XMLHttpRequest({mozSystem: true});
19794+
* };
19795+
* });
19796+
* ```
19797+
*
19798+
* @param {string} method HTTP method of the request (GET, POST, PUT, ..)
19799+
* @param {string} url URL of the request.
19800+
*/
19801+
function $xhrFactoryProvider() {
19802+
this.$get = function() {
19803+
return function createXhr() {
19804+
return new window.XMLHttpRequest();
19805+
};
19806+
};
1978019807
}
1978119808

1978219809
/**
1978319810
* @ngdoc service
1978419811
* @name $httpBackend
1978519812
* @requires $window
1978619813
* @requires $document
19814+
* @requires $xhrFactory
1978719815
*
1978819816
* @description
1978919817
* HTTP backend used by the {@link ng.$http service} that delegates to
@@ -19796,8 +19824,8 @@ function createXhr() {
1979619824
* $httpBackend} which can be trained with responses.
1979719825
*/
1979819826
function $HttpBackendProvider() {
19799-
this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
19800-
return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]);
19827+
this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {
19828+
return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);
1980119829
}];
1980219830
}
1980319831

@@ -19821,7 +19849,7 @@ function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc
1982119849
});
1982219850
} else {
1982319851

19824-
var xhr = createXhr();
19852+
var xhr = createXhr(method, url);
1982519853

1982619854
xhr.open(method, url, true);
1982719855
forEach(headers, function(value, key) {

snapshot/angular-touch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-touch.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular.js

+36-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4247+sha.86e8088
2+
* @license AngularJS v1.5.0-build.4248+sha.106f90a
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -57,7 +57,7 @@ function minErr(module, ErrorConstructor) {
5757
return match;
5858
});
5959

60-
message += '\nhttp://errors.angularjs.org/1.5.0-build.4247+sha.86e8088/' +
60+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4248+sha.106f90a/' +
6161
(module ? module + '/' : '') + code;
6262

6363
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
@@ -2341,6 +2341,7 @@ function toDebugString(obj) {
23412341
$HttpParamSerializerProvider,
23422342
$HttpParamSerializerJQLikeProvider,
23432343
$HttpBackendProvider,
2344+
$xhrFactoryProvider,
23442345
$LocationProvider,
23452346
$LogProvider,
23462347
$ParseProvider,
@@ -2378,7 +2379,7 @@ function toDebugString(obj) {
23782379
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
23792380
*/
23802381
var version = {
2381-
full: '1.5.0-build.4247+sha.86e8088', // all of these placeholder strings will be replaced by grunt's
2382+
full: '1.5.0-build.4248+sha.106f90a', // all of these placeholder strings will be replaced by grunt's
23822383
major: 1, // package task
23832384
minor: 5,
23842385
dot: 0,
@@ -2499,6 +2500,7 @@ function publishExternalAPI(angular) {
24992500
$httpParamSerializer: $HttpParamSerializerProvider,
25002501
$httpParamSerializerJQLike: $HttpParamSerializerJQLikeProvider,
25012502
$httpBackend: $HttpBackendProvider,
2503+
$xhrFactory: $xhrFactoryProvider,
25022504
$location: $LocationProvider,
25032505
$log: $LogProvider,
25042506
$parse: $ParseProvider,
@@ -10583,15 +10585,41 @@ function $HttpProvider() {
1058310585
}];
1058410586
}
1058510587

10586-
function createXhr() {
10587-
return new window.XMLHttpRequest();
10588+
/**
10589+
* @ngdoc service
10590+
* @name $xhrFactory
10591+
*
10592+
* @description
10593+
* Factory function used to create XMLHttpRequest objects.
10594+
*
10595+
* Replace or decorate this service to create your own custom XMLHttpRequest objects.
10596+
*
10597+
* ```
10598+
* angular.module('myApp', [])
10599+
* .factory('$xhrFactory', function() {
10600+
* return function createXhr(method, url) {
10601+
* return new window.XMLHttpRequest({mozSystem: true});
10602+
* };
10603+
* });
10604+
* ```
10605+
*
10606+
* @param {string} method HTTP method of the request (GET, POST, PUT, ..)
10607+
* @param {string} url URL of the request.
10608+
*/
10609+
function $xhrFactoryProvider() {
10610+
this.$get = function() {
10611+
return function createXhr() {
10612+
return new window.XMLHttpRequest();
10613+
};
10614+
};
1058810615
}
1058910616

1059010617
/**
1059110618
* @ngdoc service
1059210619
* @name $httpBackend
1059310620
* @requires $window
1059410621
* @requires $document
10622+
* @requires $xhrFactory
1059510623
*
1059610624
* @description
1059710625
* HTTP backend used by the {@link ng.$http service} that delegates to
@@ -10604,8 +10632,8 @@ function createXhr() {
1060410632
* $httpBackend} which can be trained with responses.
1060510633
*/
1060610634
function $HttpBackendProvider() {
10607-
this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
10608-
return createHttpBackend($browser, createXhr, $browser.defer, $window.angular.callbacks, $document[0]);
10635+
this.$get = ['$browser', '$window', '$document', '$xhrFactory', function($browser, $window, $document, $xhrFactory) {
10636+
return createHttpBackend($browser, $xhrFactory, $browser.defer, $window.angular.callbacks, $document[0]);
1060910637
}];
1061010638
}
1061110639

@@ -10629,7 +10657,7 @@ function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc
1062910657
});
1063010658
} else {
1063110659

10632-
var xhr = createXhr();
10660+
var xhr = createXhr(method, url);
1063310661

1063410662
xhr.open(method, url, true);
1063510663
forEach(headers, function(value, key) {

0 commit comments

Comments
 (0)