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

Function fireStateOrUrlChange

test/angular/1.6/angular.js:6609–6622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 4

urlMethod · 0.80
cacheStateFunction · 0.70
forEachFunction · 0.70
listenerFunction · 0.70

Tested by

no test coverage detected