MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / fireStateOrUrlChange

Function fireStateOrUrlChange

lib/test/angular/1.7.0/angular.js:6648–6661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 3

cacheStateFunction · 0.70
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected