Namespaces
Methods
(static) _callAction(actions, key, data) → {Boolean}
Find and execute the methods that matches with the notify key
Parameters:
Name | Type | Description |
---|---|---|
actions |
function
|
Object
|
Object of methods that can be matches with the key's value |
key |
String
|
Action key |
data |
Object
|
Bag of data |
Returns:
- Type:
-
Boolean
Callback's result
(static) root() → {String}
Get the root css selector
Returns:
- Type:
-
String
Root CSS selector
(static) run(rootopt)
Init the app with the given css selector
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
root |
String
|
<optional> |
CSS selector |
Events
page:enter
Properties:
Name | Type | Description |
---|---|---|
page |
object
|
PageObject |
Type:
-
object
page:enter
Properties:
Name | Type | Description |
---|---|---|
page |
Object
|
PageObject |
route |
String
|
Url |
Type:
-
object
page:entering
Properties:
Name | Type | Description |
---|---|---|
page |
object
|
PageObject |
route |
string
|
url |
Type:
-
object
page:entering
Properties:
Name | Type | Description |
---|---|---|
page |
Object
|
PageObject |
route |
String
|
Url |
Type:
-
object
page:leave
Properties:
Name | Type | Description |
---|---|---|
page |
object
|
PageObject |
Type:
-
object
page:leaving
Properties:
Name | Type | Description |
---|---|---|
page |
object
|
PageObject |
Type:
-
object
page:toggleNoPreviousUrl
Properties:
Name | Type | Description |
---|---|---|
currentPage |
object
|
PageObject |
Type:
-
object
pages:failedtoparse
Properties:
Name | Type | Description |
---|---|---|
data |
object
|
|
route |
string
|
|
nextPage |
object
|
PageObject |
currentPage |
object
|
PageObject |
Type:
-
object
pages:loaded
Properties:
Name | Type | Description |
---|---|---|
elem |
jQuery
|
Root element |
event |
Object
|
Request event |
url |
String
|
Request url |
Type:
-
Object
pages:loaded
Properties:
Name | Type | Description |
---|---|---|
elem |
jQuery
|
Loaded content |
data |
String
|
Loaded raw content |
url |
String
|
request url |
page |
Object
|
PageObject |
node |
jQuery
|
Page element |
xhr |
Object
|
Request object instence |
status |
String
|
Status of the request |
Type:
-
Object
pages:loaderror
Properties:
Name | Type | Description |
---|---|---|
event |
Object
|
Request event |
url |
String
|
Request url |
Type:
-
Object
pages:loadfatalerror
Properties:
Name | Type | Description |
---|---|---|
event |
Object
|
Request event |
url |
String
|
Request url |
Type:
-
Object
pages:loading
Properties:
Name | Type | Description |
---|---|---|
page |
Object
|
PageObject |
Type:
-
Object
pages:loadprogress
Properties:
Name | Type | Description |
---|---|---|
event |
Object
|
Request progress event |
url |
String
|
Request url |
total |
Integer
|
Total bytes |
loaded |
Integer
|
Total bytes loaded |
percent |
Integer
|
Type:
-
Object
pages:navigateToCurrent
Properties:
Name | Type | Description |
---|---|---|
url |
String
|
Url |
isRedirect |
Boolean
|
PageObject |
page |
Object
|
PageObject |
Type:
-
object
pages:navigateToCurrent
Properties:
Name | Type | Description |
---|---|---|
page |
Object
|
PageObject |
route |
String
|
Request url |
Type:
-
Object
pages:notfound
Properties:
Name | Type | Description |
---|---|---|
data |
String
|
Loaded raw content |
url |
String
|
request url |
xhr |
Object
|
Request object instence |
status |
String
|
Status of the request |
Type:
-
Object
pages:redirected
Offer a bail out door
Properties:
Name | Type | Description |
---|---|---|
route |
String
|
Url |
requestedRoute |
String
|
Url |
nextPage |
Object
|
PageObject |
currentPage |
Object
|
PageObject |
redirectedPage |
Object
|
PageObject |
Type:
-
Object
pages:requestBeginPageTransition
Properties:
Name | Type | Description |
---|---|---|
currentPage |
Object
|
PageObject |
nextPage |
Object
|
PageObject |
route |
String
|
Request url |
Type:
-
Object
pages:requestBeginPageTransition
Start new transition
Properties:
Name | Type | Description |
---|---|---|
route |
String
|
Url |
isRedirect |
Boolean
|
PageObject |
nextPage |
Object
|
PageObject |
currentPage |
Object
|
PageObject |
Type:
-
object
pages:requestCancelPageTransition
Cancel current transition
Properties:
Name | Type | Description |
---|---|---|
route |
String
|
Url |
nextPage |
Object
|
PageObject |
currentPage |
Object
|
PageObject |
Type:
-
Object
pages:requestPageTransition
Properties:
Name | Type | Description |
---|---|---|
pageTransitionData |
object
|
Type:
-
object
pages:routeNotFound
Properties:
Name | Type | Description |
---|---|---|
page |
Object
|
PageObject |
url |
String
|
Request url |
Type:
-
Object