| Name | 76 |Type | 77 |Description | 78 |
|---|---|---|
state |
81 | string |
82 | 83 | Returns the current Page Lifecycle state. 84 | | 85 |
pageWasDiscarded |
88 | boolean |
89 |
90 | Returns the value of document.wasDiscarded (or false if not present).
91 | |
92 |
| Name | 100 |Description | 101 |
|---|---|
addEventListener |
104 |
105 | Parameters: 106 |
Adds a callback function to be invoked whenever the passed event type is detected. (Note: at the moment only the "statechange" event type is supported.) 111 | |
112 |
removeEventListener |
115 |
116 | Parameters: 117 |
Removes a function from the current list of listeners for the passed event type. (Note: at the moment only the "statechange" event type is supported.) 122 | |
123 |
addUnsavedChanges |
126 |
127 | Parameters: 128 |
Adds an item to an internal pending-changes stack. Calling this method adds a generic The argument passed should be unique to this state, as it can only be removed by passing the same argument to |
135 |
removeUnsavedChanges |
138 |
139 | Parameters: 140 |
Removes an item matching the passed argument from an internal pending-changes stack. If the stack is empty, the generic |
145 |
| Name | 153 |Description | 154 |
|---|---|
statechange |
157 |
158 | Properties: 159 |
The |
166 |
175 | ![]() 176 | ✔ 177 | |
178 |
179 | ![]() 180 | ✔ 181 | |
182 |
183 | ![]() 184 | ✔ 185 | |
186 |
187 | ![]() 188 | ✔ 189 | |
190 |
191 | ![]() 192 | 9+ 193 | |
194 |
195 | ![]() 196 | ✔ 197 | |
198 |