core.wirings.OfflineModule Class
The main class that implements offline webapp functionalities using application cache and local storage. Extends core.wirings.Module to have the ability to be instantiated in the same fashion.
Constructor
core.wirings.OfflineModule
-
opts
Parameters:
-
optsObjectAn object containing configurations required by the Core derived class.
-
elHTMLElementThe node element included in the class composition.
-
Item Index
Methods
cacheStatus
-
status
Virtual protected function. Should be overridden on subclasses. Called automatically when the cache status has changed.
Parameters:
-
statusStringThe status of the application cache.
onApplicationCacheStatus
-
event
The main method handler for checking the application status. Also determines if a web application has gone offline/online
Parameters:
-
eventObjectContains the information about the current application cache status.
onlineStatus
-
isonline
Virtual protected function. Should be overridden on subclasses. Called automatically when the online/offline state of the application changes.
Parameters:
-
isonlineBooleanTrue/false depending on the applications online/offline state.
