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

Function fireStateOrUrlChange

lib/test/angular/1.6.7/angular.js:6590–6603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6588 }
6589
6590 function fireStateOrUrlChange() {
6591 var prevLastHistoryState = lastHistoryState;
6592 cacheState();
6593
6594 if (lastBrowserUrl === self.url() && prevLastHistoryState === cachedState) {
6595 return;
6596 }
6597
6598 lastBrowserUrl = self.url();
6599 lastHistoryState = cachedState;
6600 forEach(urlChangeListeners, function(listener) {
6601 listener(self.url(), cachedState);
6602 });
6603 }
6604
6605 /**
6606 * @name $browser#onUrlChange

Callers 1

Calls 3

cacheStateFunction · 0.70
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected