MCPcopy
hub / github.com/angular-ui/ui-router / getCurrentState

Function getCurrentState

test/angular/1.4/angular.js:5913–5919  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5911 }
5912
5913 function getCurrentState() {
5914 try {
5915 return history.state;
5916 } catch (e) {
5917 // MSIE can reportedly throw when there is no state (UNCONFIRMED).
5918 }
5919 }
5920
5921 // This variable should be used *only* inside the cacheState function.
5922 var lastCachedState = null;

Callers 4

cacheStateFunction · 0.70
cacheStateFunction · 0.50
cacheStateFunction · 0.50
cacheStateFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected