Class: EventScreen

EventScreen()

EventScreen Inherits from Senna's `HtmlScreen`. It performs logic that is common to both ActionURLScreen and RenderURLScreen.

Methods

activate()

Source:

addCache()

Source:

beforeScreenFlip()

Source:

checkRedirectPath(redirectPathnon-null)

Attempts a regular navigation to the given path, if a form is not being submitted and the redirect Path can't be matched to a known route
Parameters:
Name Type Description
redirectPath String The path to check
Source:

copyBodyAttributes()

Copies the classes and onload event from the virtual document to the actual document on the page
Source:

deactivate()

Source:

dispose()

Source:

evaluateStyles(surfacesnon-null)

Parameters:
Name Type Description
surfaces Array The surfaces to evaluate styles from
Source:

flip(surfacesnon-null)

Parameters:
Name Type Description
surfaces Array The surfaces to flip
Source:

getCache() → (non-null) {String}

Source:
Returns:
The cache contents
Type
String

getCacheLastModified() → (non-null) {Number}

Returns the timestamp the cache was last modified
Source:
Returns:
`cacheLastModified` time
Type
Number

isValidResponseStatusCode(Thenon-null) → (non-null) {Boolean}

Returns whether a given status code is considered valid
Parameters:
Name Type Description
The Number status code to check
Source:
Returns:
True if the given status code is valid
Type
Boolean

load() → (non-null) {String}

Source:
Returns:
The cache contents
Type
String

makePermanentSelectorsTemporary_(currentLanguageIdnon-null, languageIdnon-null)

The method used by evaluateStyles. This changes the static properties `HtmlScreen.selectors.stylesTemporary` and `HtmlScreen.selectors.stylesPermanent` temporarily. The action can be undone by restoreSelectors_
Parameters:
Name Type Description
currentLanguageId String
languageId String
Source:

restoreSelectors_()

The method used by evaluateStyles. This restores the permanent and temporary selectors changed by makePermanentSelectorsTemporary_.
Source:

runBodyOnLoad()

Executes the `document.body.onload` event every time a navigation occurs
Source: