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:
-
opts
ObjectAn object containing configurations required by the Core derived class.
-
el
HTMLElementThe 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:
-
status
StringThe 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:
-
event
ObjectContains 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:
-
isonline
BooleanTrue/false depending on the applications online/offline state.