()
| 6698 | } |
| 6699 | |
| 6700 | function fireStateOrUrlChange() { |
| 6701 | var prevLastHistoryState = lastHistoryState; |
| 6702 | cacheState(); |
| 6703 | |
| 6704 | if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { |
| 6705 | return; |
| 6706 | } |
| 6707 | |
| 6708 | lastBrowserUrl = self.url(); |
| 6709 | lastHistoryState = cachedState; |
| 6710 | forEach(urlChangeListeners, function(listener) { |
| 6711 | listener(self.url(), cachedState); |
| 6712 | }); |
| 6713 | } |
| 6714 | |
| 6715 | /** |
| 6716 | * @name $browser#onUrlChange |
no test coverage detected