Skip to content

Commit 7542a75

Browse files
zdenkoGeoffreyBooth
authored andcommitted
get/set example (#4990)
1 parent 0875039 commit 7542a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/examples/get_set.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Object.defineProperty screen, 'height',
66
get: ->
77
this.width / this.ratio
88
set: (val) ->
9-
this.width = val / this.ratio
9+
this.width = val * this.ratio

0 commit comments

Comments
 (0)