Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 68ebb0c

Browse files
committed
v1.6.11-build.5555+sha.45879a8
1 parent c0ef01c commit 68ebb0c

File tree

6 files changed

+253
-255
lines changed

6 files changed

+253
-255
lines changed

angular.js

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.6.11-build.5554+sha.841feb0
2+
* @license AngularJS v1.6.11-build.5555+sha.45879a8
33
* (c) 2010-2018 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -88,7 +88,7 @@ function isValidObjectMaxDepth(maxDepth) {
8888
function minErr(module, ErrorConstructor) {
8989
ErrorConstructor = ErrorConstructor || Error;
9090

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/';
9292
var regex = url.replace('.', '\\.') + '[\\s\\S]*';
9393
var errRegExp = new RegExp(regex, 'g');
9494

@@ -2502,7 +2502,8 @@ function setupModuleLoader(window) {
25022502
* @ngdoc method
25032503
* @name angular.Module#component
25042504
* @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.
25062507
* @param {Object} options Component definition object (a simplified
25072508
* {@link ng.$compile#directive-definition-object directive definition object})
25082509
*
@@ -2764,7 +2765,7 @@ function toDebugString(obj, maxDepth) {
27642765
var version = {
27652766
// These placeholder strings will be replaced by grunt's `build` task.
27662767
// 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',
27682769
major: 1,
27692770
minor: 6,
27702771
dot: 11,
@@ -2914,7 +2915,7 @@ function publishExternalAPI(angular) {
29142915
});
29152916
}
29162917
])
2917-
.info({ angularVersion: '1.6.11-build.5554+sha.841feb0' });
2918+
.info({ angularVersion: '1.6.11-build.5555+sha.45879a8' });
29182919
}
29192920

29202921
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -9746,17 +9747,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
97469747
compileNode = $compileNode[0];
97479748
replaceWith(jqCollection, sliceArgs($template), compileNode);
97489749

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-
97609750
childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority,
97619751
replaceDirective && replaceDirective.name, {
97629752
// Don't pass in:
@@ -18514,7 +18504,7 @@ function $RootScopeProvider() {
1851418504
var watch, value, last, fn, get,
1851518505
watchers,
1851618506
dirty, ttl = TTL,
18517-
next, current, target = this,
18507+
next, current, target = asyncQueue.length ? $rootScope : this,
1851818508
watchLog = [],
1851918509
logIdx, asyncTask;
1852018510

@@ -25852,7 +25842,7 @@ function weekParser(isoWeek, existingDate) {
2585225842
}
2585325843

2585425844
function createDateParser(regexp, mapping) {
25855-
return function(iso, date) {
25845+
return function(iso, previousDate) {
2585625846
var parts, map;
2585725847

2585825848
if (isDate(iso)) {
@@ -25874,15 +25864,15 @@ function createDateParser(regexp, mapping) {
2587425864

2587525865
if (parts) {
2587625866
parts.shift();
25877-
if (date) {
25867+
if (previousDate) {
2587825868
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
2588625876
};
2588725877
} else {
2588825878
map = { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 };
@@ -25893,7 +25883,15 @@ function createDateParser(regexp, mapping) {
2589325883
map[mapping[index]] = +part;
2589425884
}
2589525885
});
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;
2589725895
}
2589825896
}
2589925897

0 commit comments

Comments
 (0)