Created
July 9, 2019 10:30
-
-
Save mig82/72dc71c8c75573e645a95a7143eebb54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initGettersSetters: function() { | |
//Field foo | |
defineGetter(this, "foo", () => {return this._foo;}); | |
defineSetter(this, "foo", (foo) => {this._foo = foo;}); | |
//Field bar | |
defineGetter(this, "bar", () => {return this._bar;}); | |
defineSetter(this, "bar", (bar) => {this._bar = bar;}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment