1
1
/**
2
- * @license AngularJS v1.6.11-build.5554 +sha.841feb0
2
+ * @license AngularJS v1.6.11-build.5555 +sha.45879a8
3
3
* (c) 2010-2018 Google, Inc. http://angularjs.org
4
4
* License: MIT
5
5
*/
@@ -88,7 +88,7 @@ function isValidObjectMaxDepth(maxDepth) {
88
88
function minErr(module, ErrorConstructor) {
89
89
ErrorConstructor = ErrorConstructor || Error;
90
90
91
- var url = 'https://errors.angularjs.org/1.6.11-build.5554 +sha.841feb0 /';
91
+ var url = 'https://errors.angularjs.org/1.6.11-build.5555 +sha.45879a8 /';
92
92
var regex = url.replace('.', '\\.') + '[\\s\\S]*';
93
93
var errRegExp = new RegExp(regex, 'g');
94
94
@@ -2502,7 +2502,8 @@ function setupModuleLoader(window) {
2502
2502
* @ngdoc method
2503
2503
* @name angular.Module#component
2504
2504
* @module ng
2505
- * @param {string} name Name of the component in camel-case (i.e. myComp which will match as my-comp)
2505
+ * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
2506
+ * or an object map of components where the keys are the names and the values are the component definition objects.
2506
2507
* @param {Object} options Component definition object (a simplified
2507
2508
* {@link ng.$compile#directive-definition-object directive definition object})
2508
2509
*
@@ -2764,7 +2765,7 @@ function toDebugString(obj, maxDepth) {
2764
2765
var version = {
2765
2766
// These placeholder strings will be replaced by grunt's `build` task.
2766
2767
// They need to be double- or single-quoted.
2767
- full: '1.6.11-build.5554 +sha.841feb0 ',
2768
+ full: '1.6.11-build.5555 +sha.45879a8 ',
2768
2769
major: 1,
2769
2770
minor: 6,
2770
2771
dot: 11,
@@ -2914,7 +2915,7 @@ function publishExternalAPI(angular) {
2914
2915
});
2915
2916
}
2916
2917
])
2917
- .info({ angularVersion: '1.6.11-build.5554 +sha.841feb0 ' });
2918
+ .info({ angularVersion: '1.6.11-build.5555 +sha.45879a8 ' });
2918
2919
}
2919
2920
2920
2921
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -9746,17 +9747,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
9746
9747
compileNode = $compileNode[0];
9747
9748
replaceWith(jqCollection, sliceArgs($template), compileNode);
9748
9749
9749
- // Support: Chrome < 50
9750
- // https://github.com/angular/angular.js/issues/14041
9751
-
9752
- // In the versions of V8 prior to Chrome 50, the document fragment that is created
9753
- // in the `replaceWith` function is improperly garbage collected despite still
9754
- // being referenced by the `parentNode` property of all of the child nodes. By adding
9755
- // a reference to the fragment via a different property, we can avoid that incorrect
9756
- // behavior.
9757
- // TODO: remove this line after Chrome 50 has been released
9758
- $template[0].$$parentNode = $template[0].parentNode;
9759
-
9760
9750
childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority,
9761
9751
replaceDirective && replaceDirective.name, {
9762
9752
// Don't pass in:
@@ -18514,7 +18504,7 @@ function $RootScopeProvider() {
18514
18504
var watch, value, last, fn, get,
18515
18505
watchers,
18516
18506
dirty, ttl = TTL,
18517
- next, current, target = this,
18507
+ next, current, target = asyncQueue.length ? $rootScope : this,
18518
18508
watchLog = [],
18519
18509
logIdx, asyncTask;
18520
18510
@@ -25852,7 +25842,7 @@ function weekParser(isoWeek, existingDate) {
25852
25842
}
25853
25843
25854
25844
function createDateParser(regexp, mapping) {
25855
- return function(iso, date ) {
25845
+ return function(iso, previousDate ) {
25856
25846
var parts, map;
25857
25847
25858
25848
if (isDate(iso)) {
@@ -25874,15 +25864,15 @@ function createDateParser(regexp, mapping) {
25874
25864
25875
25865
if (parts) {
25876
25866
parts.shift();
25877
- if (date ) {
25867
+ if (previousDate ) {
25878
25868
map = {
25879
- yyyy: date .getFullYear(),
25880
- MM: date .getMonth() + 1,
25881
- dd: date .getDate(),
25882
- HH: date .getHours(),
25883
- mm: date .getMinutes(),
25884
- ss: date .getSeconds(),
25885
- sss: date .getMilliseconds() / 1000
25869
+ yyyy: previousDate .getFullYear(),
25870
+ MM: previousDate .getMonth() + 1,
25871
+ dd: previousDate .getDate(),
25872
+ HH: previousDate .getHours(),
25873
+ mm: previousDate .getMinutes(),
25874
+ ss: previousDate .getSeconds(),
25875
+ sss: previousDate .getMilliseconds() / 1000
25886
25876
};
25887
25877
} else {
25888
25878
map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };
@@ -25893,7 +25883,15 @@ function createDateParser(regexp, mapping) {
25893
25883
map[mapping[index]] = +part;
25894
25884
}
25895
25885
});
25896
- return new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);
25886
+
25887
+ var date = new Date(map.yyyy, map.MM - 1, map.dd, map.HH, map.mm, map.ss || 0, map.sss * 1000 || 0);
25888
+ if (map.yyyy < 100) {
25889
+ // In the constructor, 2-digit years map to 1900-1999.
25890
+ // Use `setFullYear()` to set the correct year.
25891
+ date.setFullYear(map.yyyy);
25892
+ }
25893
+
25894
+ return date;
25897
25895
}
25898
25896
}
25899
25897
0 commit comments