Didn't you read my blog post about onApplyDecorator? Oh wait the blog
is broken :-(

onApplyDecorator: function(sourceBox) // called on setTimeout after
sourceBox viewport has been repainted

Every source file (.js , .html, eval buffers, browser-generated
functions) that has ever been shown to the user has a 'sourceBox', the
thing rendered in the Script Panel.  In 1.2 and prior, the sourceBox
contained a div of about 10 elements for every source line. Some
javascript apps have 40kloc, so close to a half million elements are
needed to render it. Building that sourceBox takes seconds. On the
other hand, as long as you don't page, the scrolling in this
implementation is fast and uneventful.

In 1.3 I changed the sourceBox to render only the lines the user can
see.  The building now is fast, only 20-50 lines means 500 elements.
Scrolling however is much more complicated.

Right after the sourceBox is filled with elements a setTimeout
function runs that applies "decorations", for example the line that
will be highlighted, the green numbers for executable lines, and so
on.  At the end of that function, listeners for onApplyDecorator are
notified. This allows these listeners to further manipulate the
sourceBox.

jjb

On Oct 18, 9:29 pm, Christoph Dorn <[EMAIL PROTECTED]>
wrote:
> What is  onApplyDecorator() in 1.3 all about?
>
> Christoph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to