Permalink
Browse files

Cleanup and better inspect

  • Loading branch information...
koenbok committed May 11, 2016
1 parent 358bf74 commit b5013f88179c96964042faaebcc4f8a470f28344
Showing with 5 additions and 5 deletions.
  1. +5 −5 framer/Canvas.coffee
@@ -5,8 +5,8 @@ class Canvas extends BaseClass
@define "width", get: -> window.innerWidth
@define "height", get: -> window.innerHeight
@define "size", get: -> {width:@width, height:@height}
@define "frame", get: -> {x:0, y:0, width:@width, height:@height}
@define "size", get: -> Utils.size(@)
@define "frame", get: -> Utils.frame(@)
@define "backgroundColor",
importable: false
@@ -26,14 +26,14 @@ class Canvas extends BaseClass
onResize: (cb) -> @on("resize", cb)
toInspect: ->
return "<#{@constructor.name} #{@width}x#{@height}>"
_handleResize: (event) =>
@emit("resize")
@emit("change:width")
@emit("change:height")
@emit("change:size")
@emit("change:frame")
toInspect: ->
return "<#{@constructor.name} #{@width}x#{@height}>"
exports.Canvas = Canvas

0 comments on commit b5013f8

Please sign in to comment.