You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Luca Conte <lu...@tinet.it> on 2007/07/03 16:13:25 UTC
Dojo Utils addRequire bug?
Hi,
this code:
DojoUtils.addRequire(context, component, new
String[]{"dojo.dnd.*","dojo.event.*", "dojo.widget.ResizeHandle"});
is translated into a sequence of 3 distinct Javascripts TAGS:
<script type="text/javascript"><!--
dojo.require('dojo.dnd.*');
//--></script><script type="text/javascript"><!--
dojo.require('dojo.event.*');
//--></script><script type="text/javascript"><!--
dojo.require('dojo.widget.ResizeHandle');
//--></script>
Why not a single script? Actualy there is a waste of bytes!
bye
--
Luca Conte
IT Solutions
luca.conte@tinet.it
Sinesy srl - Gruppo Tecnoinformatica
Via Comunale di Camino, 22/D - 31046 Oderzo (TV)
www.tinet.it
Servizio Clienti:
Tel. 199.117701 - Fax 0422.814481
Re: Dojo Utils addRequire bug?
Posted by Werner Punz <we...@gmail.com>.
Not really a bug, but not really neat as well I agree.
I will fix it asap.
Werner
Luca Conte schrieb:
> Hi,
> this code:
> DojoUtils.addRequire(context, component, new
> String[]{"dojo.dnd.*","dojo.event.*", "dojo.widget.ResizeHandle"});
>
> is translated into a sequence of 3 distinct Javascripts TAGS:
>
> <script type="text/javascript"><!--
> dojo.require('dojo.dnd.*');
> //--></script><script type="text/javascript"><!--
> dojo.require('dojo.event.*');
> //--></script><script type="text/javascript"><!--
> dojo.require('dojo.widget.ResizeHandle');
> //--></script>
>
> Why not a single script? Actualy there is a waste of bytes!
>
> bye
>