()
| 6646 | } |
| 6647 | |
| 6648 | function fireStateOrUrlChange() { |
| 6649 | var prevLastHistoryState = lastHistoryState; |
| 6650 | cacheState(); |
| 6651 | |
| 6652 | if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { |
| 6653 | return; |
| 6654 | } |
| 6655 | |
| 6656 | lastBrowserUrl = self.url(); |
| 6657 | lastHistoryState = cachedState; |
| 6658 | forEach(urlChangeListeners, function(listener) { |
| 6659 | listener(self.url(), cachedState); |
| 6660 | }); |
| 6661 | } |
| 6662 | |
| 6663 | /** |
| 6664 | * @name $browser#onUrlChange |
no test coverage detected