mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
9 lines
166 B
CoffeeScript
9 lines
166 B
CoffeeScript
screen =
|
|
width: 1200
|
|
ratio: 16/9
|
|
|
|
Object.defineProperty screen, 'height',
|
|
get: ->
|
|
this.width / this.ratio
|
|
set: (val) ->
|
|
this.width = val / this.ratio
|