Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Prototype Get/Set

2006-10-14
2013-04-08
  • Is this project still being worked on?

    I miss support for getters and setters:

    function foo() {}

    foo.prototype = {
        mSomevar: null,

        get somevar() { return this.mSomevar; },
        set somevar(v) { this.mSomevar = v; }
    };