1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

get/set example (#4990)

This commit is contained in:
zdenko 2018-02-25 09:18:57 +01:00 committed by Geoffrey Booth
parent 0875039d52
commit 7542a75ff8

View file

@ -6,4 +6,4 @@ Object.defineProperty screen, 'height',
get: ->
this.width / this.ratio
set: (val) ->
this.width = val / this.ratio
this.width = val * this.ratio