175176177178179180181182183184185
return new Object[]{null, msg, request, null, exception}; } }); } if (onSuccess != null) { ret.done(onSuccess); } if (onError != null) { ret.fail(onError); } return ret;
2627282930313233343536
private void loadAngular() { if(!isInjected()) { Promise loadAngular = new ScriptLoader(); loadAngular.done(new Function() { public void f() { Browser.getWindow().getConsole().info("loading angularjs succeeded."); injectModules(); } });