Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix($location): url rewriting if element was removed #1062

Merged
merged 1 commit into from
Jun 21, 2012

Conversation

vojtajina
Copy link
Contributor

When user clicks a link, $location needs to intercept this event. The doesn't have to be target element of the DOM event, so it needs to traverse the DOM, to find first parent.

If the target element was removed from DOM, during the same event, it would throw an exception. This fixes the issue.

Closes #1058

When user clicks a link, $location needs to intercept this event.  The <a> doesn't have to be target element of the DOM event, so it needs to traverse the DOM, to find first <a> parent.

If the target element was removed from DOM, during the same event, it would throw an exception. This fixes the issue.

Closes angular#1058
@vojtajina vojtajina merged commit 3da4194 into angular:master Jun 21, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: Cannot read property 'nodeName' of undefined angular.js:5356
1 participant