()
| 5125 | } |
| 5126 | |
| 5127 | function getCurrentState() { |
| 5128 | try { |
| 5129 | return history.state; |
| 5130 | } catch (e) { |
| 5131 | // MSIE can reportedly throw when there is no state (UNCONFIRMED). |
| 5132 | } |
| 5133 | } |
| 5134 | |
| 5135 | // This variable should be used *only* inside the cacheState function. |
| 5136 | var lastCachedState = null; |