Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
24 lines
608 B
JavaScript
Executable file
24 lines
608 B
JavaScript
Executable file
'use strict';
|
|
/* globals CallsHandler, CallScreen,
|
|
KeypadManager */
|
|
|
|
/**
|
|
* Function invoked at onload time to initialize the application.
|
|
*/
|
|
function onLoadCallScreen(evt) {
|
|
window.removeEventListener('load', onLoadCallScreen);
|
|
|
|
CallsHandler.setup();
|
|
CallScreen.init();
|
|
KeypadManager.init(/* oncall */ true);
|
|
}
|
|
|
|
/**
|
|
* Dummy function introduced in bug 1083729, see below.
|
|
*/
|
|
function unloadCallScreen(evt) { }
|
|
|
|
window.addEventListener('load', onLoadCallScreen);
|
|
|
|
// Bug 1083729: add an empty unload event listener to circumvent bug 1078448.
|
|
window.addEventListener('unload', unloadCallScreen);
|