MCPcopy
hub / github.com/angular-ui/ui-grid / fireStateOrUrlChange

Function fireStateOrUrlChange

lib/test/angular/1.8.0/angular.js:6765–6778  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

cacheStateFunction · 0.70
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected