[Project_owners] mouseover for link monitoring!

eric.jung at yahoo.com eric.jung at yahoo.com
Thu Jul 12 19:55:53 PDT 2007


Nickolay, care to elaborate? I'd like to document this at MDC.



----- Original Message ----
From: Nickolay Ponomarev <asqueella at gmail.com>
To: Mozdev Project Owners List <project_owners at mozdev.org>
Sent: Thursday, July 12, 2007 11:14:41 AM
Subject: Re: [Project_owners] mouseover for link monitoring!

On 6/29/07, xeen <aka.xeen at gmail.com> wrote:
eval("nsBrowserStatusHandler.prototype.updateStatusField="+nsBrowserStatusHandler.prototype.updateStatusField.toString().replace(
>       'var text',
>       '/* your stuff */ var text'
>       ));
> }
>
> HOWEVER this method has SEVERAL disadvantages.
Indeed. Why not save the value of
nsBrowserStatusHandler.prototype.updateStatusField and replace it with
your own function that does its work, then calls the saved function
(with apply to make sure the saved function has the correct |this|)?

Nickolay
_______________________________________________
Project_owners mailing list
Project_owners at mozdev.org
http://mozdev.org/mailman/listinfo/project_owners




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070712/b7d2d0ff/attachment.html 


More information about the Project_owners mailing list