mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 01:07:55 -05:00
10 lines
166 B
CoffeeScript
10 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
|