()
| 6588 | } |
| 6589 | |
| 6590 | function fireStateOrUrlChange() { |
| 6591 | var prevLastHistoryState = lastHistoryState; |
| 6592 | cacheState(); |
| 6593 | |
| 6594 | if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { |
| 6595 | return; |
| 6596 | } |
| 6597 | |
| 6598 | lastBrowserUrl = self.url(); |
| 6599 | lastHistoryState = cachedState; |
| 6600 | forEach(urlChangeListeners, function(listener) { |
| 6601 | listener(self.url(), cachedState); |
| 6602 | }); |
| 6603 | } |
| 6604 | |
| 6605 | /** |
| 6606 | * @name $browser#onUrlChange |
no test coverage detected