[Project_owners] Re: Overriding a property/getter/setter

Philip Chee philip at aleytys.pc.my
Tue Sep 20 01:52:01 EDT 2005

On Mon, 19 Sep 2005 18:21:31 +0200, Michael Vincent wrote:

> Something like this:

Thanks! Next stupid question. How do I apply my binding? I presume that I'll
need a css file with a -moz-binding and then apply that css file via


p.s. after digging through the netscape 8 toolkit.jar (and comparing it with
the firefox version) for a couple of days wondering why flashblock works
perfectly in Mozilla, Seamonkey and Firefox, but misbehaves in Netscape 8, I
have come to the conclusion that there are people who given sufficient
incentive can take lean, mean, lightning fast Firefox code and turn it into
bloated, kludgy, slow, and not to mention buggy, Netscape 8 code.

> <?xml version="1.0"?>
> <!DOCTYPE bindings SYSTEM>
> <bindings id="multibarBindings"
>            xmlns="http://www.mozilla.org/xbl"
>            xmlns:xbl="http://www.mozilla.org/xbl">
>    <binding id="multibar" 
> extends="chrome://global/content/bindings/multibar.xml#multibar">
>      <implementation>
>        <property name="foobar">
>          <getter>
>            return this.whatever;
>          </getter>
>          <setter>
>            <![CDATA[
>            this.whatever = val;
>            return val;
>            ]]>
>          </setter>
>        </property>
>      </implementation>
>    </binding>
> </bindings>
> I hope this helps,
> Michael

Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.

More information about the Project_owners mailing list