mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-15 13:45:01 -05:00
33 lines
579 B
JavaScript
33 lines
579 B
JavaScript
|
/***** mInitializer *****/
|
||
|
|
||
|
mInitializer = {
|
||
|
onDocumentComplete: function()
|
||
|
{
|
||
|
log("on document complete initializing");
|
||
|
mRefill.initialize();
|
||
|
},
|
||
|
|
||
|
onServiceBootstrap: function()
|
||
|
{
|
||
|
setInterval( function(){ MService.dispatchEvents(); }, 250);
|
||
|
}
|
||
|
} ;
|
||
|
|
||
|
function onMailiverseBootstrapGWT(service)
|
||
|
{
|
||
|
MService = service;
|
||
|
mInitializer.onServiceBootstrap();
|
||
|
}
|
||
|
|
||
|
function onMailiverseServiceLoaded ()
|
||
|
{
|
||
|
MService.setDelegate(mDelegate);
|
||
|
$('#_mLoading').hide();
|
||
|
mRefill.onServiceLoaded();
|
||
|
}
|
||
|
|
||
|
$(function() { mInitializer.onDocumentComplete();});
|
||
|
|
||
|
|
||
|
/***** mInitializer *****/
|