> Le 06/08/2014 20:49, Juraj Kirchheim a écrit :
>
>> @Dan: I think it'd be great do have some -D headless or -D nobrowser
>> or -D nodom or -D nohtml or whatever to get rid off the js.html.* and
>> js.Browser stuff. Also js.Lib.alert should ideally go into
>> js.Browser.alert for a cleaner dissection, but that's probably not
>> worth breaking code.
>
>
> Apart from alert() - which could be implemented in some other way in Node
> anyway
I'm really not sure about that. An alert is a *blocking* GUI
interaction. Some output to the console just won't cut it, if you ask
me.
> - there's already such a clear separation with js.Browser and js.html
> package.
In general, yes. There is this one mishap however. I think it should
just be `@:deprecated @:require(!nodom)` and then we put the actual
implementation into js.Browser and we don't need to break anything.
> We might only want to actualy forbid using these when compiling for
> node.
My point exactly. To be more precise, we should simply make forbidding
these straight forward. You don't want to automatically forbid them
when compiling for node, because then you can't use node-webkit ;)
Best,
Juraj