Created
November 11, 2016 23:00
-
-
Save jrhii/56ab1aa1940d3328d4f90bfc2fbffeaf 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
class foo { | |
constructor(bar, thing) { | |
this.bar = bar; | |
this.thing = thing; | |
} | |
set bar(newBar) { | |
this.bar = newBar; | |
this.thing.changeThing(this.bar); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment