mailiverse/web/signup/mInitializer.js
2013-07-21 13:40:17 -04:00

33 lines
557 B
JavaScript

/***** mInitializer *****/
mInitializer = {
onDocumentComplete: function()
{
mSignUp.initialize();
log("initialized");
},
onServiceBootstrap: function()
{
setInterval( function(){ MService.dispatchEvents(); }, 250);
}
} ;
function onMailiverseBootstrapGWT(service)
{
MService = service;
mInitializer.onServiceBootstrap();
}
function onMailiverseServiceLoaded ()
{
MService.setDelegate(mDelegate);
$('#_mLoading').hide();
mSignUp.onServiceLoaded();
}
$(function() { mInitializer.onDocumentComplete();});
/***** mInitializer *****/