()
| 6607 | } |
| 6608 | |
| 6609 | function fireStateOrUrlChange() { |
| 6610 | var prevLastHistoryState = lastHistoryState; |
| 6611 | cacheState(); |
| 6612 | |
| 6613 | if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) { |
| 6614 | return; |
| 6615 | } |
| 6616 | |
| 6617 | lastBrowserUrl = self.url(); |
| 6618 | lastHistoryState = cachedState; |
| 6619 | forEach(urlChangeListeners, function(listener) { |
| 6620 | listener(self.url(), cachedState); |
| 6621 | }); |
| 6622 | } |
| 6623 | |
| 6624 | /** |
| 6625 | * @name $browser#onUrlChange |
no test coverage detected