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:
parent
0875039d52
commit
7542a75ff8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue