On 6/29/07, xeen <[EMAIL PROTECTED]> 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
[email protected]
http://mozdev.org/mailman/listinfo/project_owners