[Project_owners] mouseover for link monitoring!

Nickolay Ponomarev asqueella at gmail.com
Thu Jul 12 08:14:41 PDT 2007


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


More information about the Project_owners mailing list