get/set example (#4990)
This commit is contained in:
parent
0875039d52
commit
7542a75ff8
|
@ -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 New Issue