()
| 5558 | } |
| 5559 | |
| 5560 | function fireUrlChange() { |
| 5561 | if (lastBrowserUrl === self.url() && lastHistoryState === cachedState) { |
| 5562 | return; |
| 5563 | } |
| 5564 | |
| 5565 | lastBrowserUrl = self.url(); |
| 5566 | lastHistoryState = cachedState; |
| 5567 | forEach(urlChangeListeners, function(listener) { |
| 5568 | listener(self.url(), cachedState); |
| 5569 | }); |
| 5570 | } |
| 5571 | |
| 5572 | /** |
| 5573 | * @name $browser#onUrlChange |
no test coverage detected