6 Replies Latest reply on May 29, 2009 9:56 AM by JasonMH

    use prototype to override getter/setter ?

    JasonMH Level 1

      Is there anyway to use the prototype to override a getter/setter ?I know you can override functions like so:

       

          prototype.toString = function()
          {
              // statements
          };

       

      I was wondering if it is possible to do the same with a getter/setter?  If so, what is the syntax?

       

      Thanks,

      j