Skip to content

Commit

Permalink
v1.5.3-build.4694+sha.cc1de81
Browse files Browse the repository at this point in the history
  • Loading branch information
NgDashboard committed Mar 23, 2016
1 parent 0e0f9b3 commit 96c1741
Show file tree
Hide file tree
Showing 36 changed files with 119 additions and 103 deletions.
Binary file not shown.
7 changes: 6 additions & 1 deletion snapshot/angular-animate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.5.3-build.4693+sha.6778453
* @license AngularJS v1.5.3-build.4694+sha.cc1de81
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -2225,6 +2225,11 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
});

rules.cancel.push(function(element, newAnimation, currentAnimation) {
// cancel the animation if classes added / removed in both animation cancel each other out,
// but only if the current animation isn't structural

if (currentAnimation.structural) return false;

var nA = newAnimation.addClass;
var nR = newAnimation.removeClass;
var cA = currentAnimation.addClass;
Expand Down
80 changes: 40 additions & 40 deletions snapshot/angular-animate.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion snapshot/angular-animate.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion snapshot/angular-aria.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.5.3-build.4693+sha.6778453
* @license AngularJS v1.5.3-build.4694+sha.cc1de81
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion snapshot/angular-aria.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion snapshot/angular-cookies.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.5.3-build.4693+sha.6778453
* @license AngularJS v1.5.3-build.4694+sha.cc1de81
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion snapshot/angular-cookies.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions snapshot/angular-loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.5.3-build.4693+sha.6778453
* @license AngularJS v1.5.3-build.4694+sha.cc1de81
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -87,7 +87,7 @@ function minErr(module, ErrorConstructor) {
return match;
});

message += '\nhttp://errors.angularjs.org/1.5.3-build.4693+sha.6778453/' +
message += '\nhttp://errors.angularjs.org/1.5.3-build.4694+sha.cc1de81/' +
(module ? module + '/' : '') + code;

for (i = SKIP_INDEXES, paramPrefix = '?'; i < templateArgs.length; i++, paramPrefix = '&') {
Expand Down
4 changes: 2 additions & 2 deletions snapshot/angular-loader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion snapshot/angular-message-format.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.5.3-build.4693+sha.6778453
* @license AngularJS v1.5.3-build.4694+sha.cc1de81
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion snapshot/angular-message-format.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions snapshot/angular-messages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license AngularJS v1.5.3-build.4693+sha.6778453
* @license AngularJS v1.5.3-build.4694+sha.cc1de81
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
Expand Down Expand Up @@ -415,6 +415,13 @@ angular.module('ngMessages', [])

$scope.$watchCollection($attrs.ngMessages || $attrs['for'], ctrl.render);

// If the element is destroyed, proactively destroy all the currently visible messages
$element.on('$destroy', function() {
forEach(messages, function(item) {
item.message.detach();
});
});

this.reRender = function() {
if (!renderLater) {
renderLater = true;
Expand Down Expand Up @@ -449,6 +456,7 @@ angular.module('ngMessages', [])
function findPreviousMessage(parent, comment) {
var prevNode = comment;
var parentLookup = [];

while (prevNode && prevNode !== parent) {
var prevKey = prevNode.$$ngMessageNode;
if (prevKey && prevKey.length) {
Expand All @@ -460,8 +468,11 @@ angular.module('ngMessages', [])
if (prevNode.childNodes.length && parentLookup.indexOf(prevNode) == -1) {
parentLookup.push(prevNode);
prevNode = prevNode.childNodes[prevNode.childNodes.length - 1];
} else if (prevNode.previousSibling) {
prevNode = prevNode.previousSibling;
} else {
prevNode = prevNode.previousSibling || prevNode.parentNode;
prevNode = prevNode.parentNode;
parentLookup.push(prevNode);
}
}
}
Expand Down Expand Up @@ -674,8 +685,8 @@ function ngMessageDirectiveFactory() {
// when we are destroying the node later.
var $$attachId = currentElement.$$attachId = ngMessagesCtrl.getAttachId();

// in the event that the parent element is destroyed
// by any other structural directive then it's time
// in the event that the element or a parent element is destroyed
// by another structural directive then it's time
// to deregister the message from the controller
currentElement.on('$destroy', function() {
if (currentElement && currentElement.$$attachId === $$attachId) {
Expand Down
14 changes: 7 additions & 7 deletions snapshot/angular-messages.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 96c1741

Please sign in to comment.