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

Commit 4c714d7

Browse files
committed
v1.5.0-build.4272+sha.8366622
1 parent 9d22976 commit 4c714d7

35 files changed

+69
-61
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.4271+sha.d3de006
2+
* @license AngularJS v1.5.0-build.4272+sha.8366622
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.4271+sha.d3de006
2+
* @license AngularJS v1.5.0-build.4272+sha.8366622
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.4271+sha.d3de006
2+
* @license AngularJS v1.5.0-build.4272+sha.8366622
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.4271+sha.d3de006
2+
* @license AngularJS v1.5.0-build.4272+sha.8366622
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.4271+sha.d3de006/' +
62+
message += '\nhttp://errors.angularjs.org/1.5.0-build.4272+sha.8366622/' +
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.4271+sha.d3de006
2+
* @license AngularJS v1.5.0-build.4272+sha.8366622
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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.5.0-build.4271+sha.d3de006
2+
* @license AngularJS v1.5.0-build.4272+sha.8366622
33
* (c) 2010-2015 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -330,6 +330,9 @@ angular.module('ngMessages', [])
330330
controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
331331
var ctrl = this;
332332
var latestKey = 0;
333+
var nextAttachId = 0;
334+
335+
this.getAttachId = function getAttachId() { return nextAttachId++; };
333336

334337
var messages = this.messages = {};
335338
var renderLater, cachedCollection;
@@ -641,11 +644,15 @@ function ngMessageDirectiveFactory(restrict) {
641644
$animate.enter(elm, null, element);
642645
currentElement = elm;
643646

647+
// Each time we attach this node to a message we get a new id that we can match
648+
// when we are destroying the node later.
649+
var $$attachId = currentElement.$$attachId = ngMessagesCtrl.getAttachId();
650+
644651
// in the event that the parent element is destroyed
645652
// by any other structural directive then it's time
646653
// to deregister the message from the controller
647654
currentElement.on('$destroy', function() {
648-
if (currentElement) {
655+
if (currentElement && currentElement.$$attachId === $$attachId) {
649656
ngMessagesCtrl.deregister(commentNode);
650657
messageCtrl.detach();
651658
}

snapshot/angular-messages.min.js

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

0 commit comments

Comments
 (0)