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

Commit 154e15c

Browse files
committed
v1.5.0-build.4264+sha.630280c
1 parent 0e5a47d commit 154e15c

36 files changed

+283
-241
lines changed

snapshot/angular-animate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-animate.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-aria.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-aria.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-cookies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-cookies.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
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.4263+sha.7dcfe5e/' +
62+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4264+sha.630280c/' +
6363
(module ? module + '/' : '') + code;
6464

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

snapshot/angular-loader.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-message-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-message-format.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-messages.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-mocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-resource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-resource.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-route.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-sanitize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-sanitize.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular-scenario.js

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9190,7 +9190,7 @@ return jQuery;
91909190
}));
91919191

91929192
/**
9193-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
9193+
* @license AngularJS v1.5.0-build.4264+sha.630280c
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.4263+sha.7dcfe5e/' +
9252+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4264+sha.630280c/' +
92539253
(module ? module + '/' : '') + code;
92549254

92559255
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
@@ -11572,7 +11572,7 @@ function toDebugString(obj) {
1157211572
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
1157311573
*/
1157411574
var version = {
11575-
full: '1.5.0-build.4263+sha.7dcfe5e', // all of these placeholder strings will be replaced by grunt's
11575+
full: '1.5.0-build.4264+sha.630280c', // all of these placeholder strings will be replaced by grunt's
1157611576
major: 1, // package task
1157711577
minor: 5,
1157811578
dot: 0,
@@ -33825,7 +33825,9 @@ var VALID_CLASS = 'ng-valid',
3382533825
DIRTY_CLASS = 'ng-dirty',
3382633826
UNTOUCHED_CLASS = 'ng-untouched',
3382733827
TOUCHED_CLASS = 'ng-touched',
33828-
PENDING_CLASS = 'ng-pending';
33828+
PENDING_CLASS = 'ng-pending',
33829+
EMPTY_CLASS = 'ng-empty',
33830+
NOT_EMPTY_CLASS = 'ng-not-empty';
3382933831

3383033832
var ngModelMinErr = minErr('ngModel');
3383133833

@@ -34127,6 +34129,17 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3412734129
return isUndefined(value) || value === '' || value === null || value !== value;
3412834130
};
3412934131

34132+
this.$$updateEmptyClasses = function(value) {
34133+
if (ctrl.$isEmpty(value)) {
34134+
$animate.removeClass($element, NOT_EMPTY_CLASS);
34135+
$animate.addClass($element, EMPTY_CLASS);
34136+
} else {
34137+
$animate.removeClass($element, EMPTY_CLASS);
34138+
$animate.addClass($element, NOT_EMPTY_CLASS);
34139+
}
34140+
};
34141+
34142+
3413034143
var currentValidationRunId = 0;
3413134144

3413234145
/**
@@ -34463,6 +34476,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3446334476
if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {
3446434477
return;
3446534478
}
34479+
ctrl.$$updateEmptyClasses(viewValue);
3446634480
ctrl.$$lastCommittedViewValue = viewValue;
3446734481

3446834482
// change to dirty
@@ -34645,6 +34659,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3464534659
viewValue = formatters[idx](viewValue);
3464634660
}
3464734661
if (ctrl.$viewValue !== viewValue) {
34662+
ctrl.$$updateEmptyClasses(viewValue);
3464834663
ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;
3464934664
ctrl.$render();
3465034665

@@ -34675,7 +34690,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3467534690
* require.
3467634691
* - Providing validation behavior (i.e. required, number, email, url).
3467734692
* - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).
34678-
* - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`, `ng-untouched`) including animations.
34693+
* - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,
34694+
* `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.
3467934695
* - Registering the control with its parent {@link ng.directive:form form}.
3468034696
*
3468134697
* Note: `ngModel` will try to bind to the property given by evaluating the expression on the
@@ -34716,13 +34732,16 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
3471634732
* - `ng-touched`: the control has been blurred
3471734733
* - `ng-untouched`: the control hasn't been blurred
3471834734
* - `ng-pending`: any `$asyncValidators` are unfulfilled
34735+
* - `ng-empty`: the view does not contain a value or the value is deemed "empty", as defined
34736+
* by the {@link ngModel.NgModelController#$isEmpty} method
34737+
* - `ng-not-empty`: the view contains a non-empty value
3471934738
*
3472034739
* Keep in mind that ngAnimate can detect each of these classes when added and removed.
3472134740
*
3472234741
* ## Animation Hooks
3472334742
*
3472434743
* Animations within models are triggered when any of the associated CSS classes are added and removed
34725-
* on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,
34744+
* on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,
3472634745
* `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
3472734746
* The animations that are triggered within ngModel are similar to how they work in ngClass and
3472834747
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.

snapshot/angular-touch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/

snapshot/angular-touch.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/angular.js

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4263+sha.7dcfe5e
2+
* @license AngularJS v1.5.0-build.4264+sha.630280c
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.4263+sha.7dcfe5e/' +
60+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4264+sha.630280c/' +
6161
(module ? module + '/' : '') + code;
6262

6363
for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
@@ -2380,7 +2380,7 @@ function toDebugString(obj) {
23802380
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
23812381
*/
23822382
var version = {
2383-
full: '1.5.0-build.4263+sha.7dcfe5e', // all of these placeholder strings will be replaced by grunt's
2383+
full: '1.5.0-build.4264+sha.630280c', // all of these placeholder strings will be replaced by grunt's
23842384
major: 1, // package task
23852385
minor: 5,
23862386
dot: 0,
@@ -24633,7 +24633,9 @@ var VALID_CLASS = 'ng-valid',
2463324633
DIRTY_CLASS = 'ng-dirty',
2463424634
UNTOUCHED_CLASS = 'ng-untouched',
2463524635
TOUCHED_CLASS = 'ng-touched',
24636-
PENDING_CLASS = 'ng-pending';
24636+
PENDING_CLASS = 'ng-pending',
24637+
EMPTY_CLASS = 'ng-empty',
24638+
NOT_EMPTY_CLASS = 'ng-not-empty';
2463724639

2463824640
var ngModelMinErr = minErr('ngModel');
2463924641

@@ -24935,6 +24937,17 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
2493524937
return isUndefined(value) || value === '' || value === null || value !== value;
2493624938
};
2493724939

24940+
this.$$updateEmptyClasses = function(value) {
24941+
if (ctrl.$isEmpty(value)) {
24942+
$animate.removeClass($element, NOT_EMPTY_CLASS);
24943+
$animate.addClass($element, EMPTY_CLASS);
24944+
} else {
24945+
$animate.removeClass($element, EMPTY_CLASS);
24946+
$animate.addClass($element, NOT_EMPTY_CLASS);
24947+
}
24948+
};
24949+
24950+
2493824951
var currentValidationRunId = 0;
2493924952

2494024953
/**
@@ -25271,6 +25284,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
2527125284
if (ctrl.$$lastCommittedViewValue === viewValue && (viewValue !== '' || !ctrl.$$hasNativeValidators)) {
2527225285
return;
2527325286
}
25287+
ctrl.$$updateEmptyClasses(viewValue);
2527425288
ctrl.$$lastCommittedViewValue = viewValue;
2527525289

2527625290
// change to dirty
@@ -25453,6 +25467,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
2545325467
viewValue = formatters[idx](viewValue);
2545425468
}
2545525469
if (ctrl.$viewValue !== viewValue) {
25470+
ctrl.$$updateEmptyClasses(viewValue);
2545625471
ctrl.$viewValue = ctrl.$$lastCommittedViewValue = viewValue;
2545725472
ctrl.$render();
2545825473

@@ -25483,7 +25498,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
2548325498
* require.
2548425499
* - Providing validation behavior (i.e. required, number, email, url).
2548525500
* - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).
25486-
* - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`, `ng-untouched`) including animations.
25501+
* - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,
25502+
* `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.
2548725503
* - Registering the control with its parent {@link ng.directive:form form}.
2548825504
*
2548925505
* Note: `ngModel` will try to bind to the property given by evaluating the expression on the
@@ -25524,13 +25540,16 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
2552425540
* - `ng-touched`: the control has been blurred
2552525541
* - `ng-untouched`: the control hasn't been blurred
2552625542
* - `ng-pending`: any `$asyncValidators` are unfulfilled
25543+
* - `ng-empty`: the view does not contain a value or the value is deemed "empty", as defined
25544+
* by the {@link ngModel.NgModelController#$isEmpty} method
25545+
* - `ng-not-empty`: the view contains a non-empty value
2552725546
*
2552825547
* Keep in mind that ngAnimate can detect each of these classes when added and removed.
2552925548
*
2553025549
* ## Animation Hooks
2553125550
*
2553225551
* Animations within models are triggered when any of the associated CSS classes are added and removed
25533-
* on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,
25552+
* on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,
2553425553
* `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
2553525554
* The animations that are triggered within ngModel are similar to how they work in ngClass and
2553625555
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.

0 commit comments

Comments
 (0)