Hey David,

2009/6/11 David Galicia <[email protected]>:
>
> The tree view drag and drop example (from yesterday's Git), with 
> enableUpdates() set to true, also shows slow reflexes like Ext::Button; they 
> may not share the same problem though; I can't prove it =(.

I tried doing this in treeview drag drop and to my sad surprise, yes,
it doesn't work! A little bit of investigation showed that all
JSignal's were affected: they would not get propagated properly. Since
many Ext events are propagated using JSignals, that explains the ExtJs
problem. The following patch solves it:

src/web/skeleton/Wt.js, line 1161, change:
  if (responsePending == null)
    scheduleUpdate();
to:
  scheduleUpdate();

I am going to push this fix soon to the public git branch, together
with other fixes...

> So, does it matter from where in the code you call enableUpdates()? I call 
> the function from an inheirited Application object; could that be why tree 
> view got slow?

It doesn't matter -- in fact, you can also freely enabled and disable them.

> I want to look into the source of the matter myself but I'm an inexperienced 
> programmer and I'm shy at seeing and understanding code that I have not 
> written myself; I'll get over it. I did borrow Wt's coding style though and 
> it improved my code's clarity and presentation; my code is like art now; I 
> can stare at it all day.

There is no nicer compliment a programmer can get ! :-)

Regards,
koen

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to