()
| 6763 | } |
| 6764 | |
| 6765 | function fireStateOrUrlChange() { |
| 6766 | var prevLastHistoryState = lastHistoryState; |
| 6767 | cacheState(); |
| 6768 | |
| 6769 | if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { |
| 6770 | return; |
| 6771 | } |
| 6772 | |
| 6773 | lastBrowserUrl = self.url(); |
| 6774 | lastHistoryState = cachedState; |
| 6775 | forEach(urlChangeListeners, function(listener) { |
| 6776 | listener(self.url(), cachedState); |
| 6777 | }); |
| 6778 | } |
| 6779 | |
| 6780 | /** |
| 6781 | * @name $browser#onUrlChange |
no test coverage detected