[Sugar-devel] sugar-web: env.js questions
Rogelio Mita
rogeliomita at activitycentral.com
Fri Nov 22 13:31:16 EST 2013
Hi,
Can you help me to understand the getEnvironment function (
https://github.com/sugarlabs/sugar-web/blob/master/env.js)?.
My understanding is that if sugar.environment is undefined is because I am
in standalone mode, is that right?
what is the purpose of this handler onEnvironmentSet (
https://github.com/sugarlabs/sugar-web/blob/master/env.js#L22)?
I am running all tests (with karma but with a Chfome browser, no in sugar
environment) and I noted some rare: when is running this test:
https://github.com/sugarlabs/sugar-web/blob/master/test/envSpec.js is
SUCCESS, I can't underestand why.
Regards!
--
Roger
Activity Central <http://activitycentral.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131122/880d1d76/attachment.html>
More information about the Sugar-devel
mailing list