Permalink
Browse files

add ability to get image source

  • Loading branch information...
1 parent e36e69a commit e4253770c2c1b7cdee90a7898647c076bd5d8760 @caleb committed Jun 9, 2014
Showing with 6 additions and 0 deletions.
  1. +3 −0 lib/canvas-image.coffee
  2. +3 −0 lib/rodeo-crop.coffee
View
3 lib/canvas-image.coffee
@@ -31,6 +31,9 @@ class CanvasImage extends drawing.Drawable
@markDirty()
+ getSource: ->
+ @source
+
setSource: (source) ->
@clearImage()
@source = source
View
3 lib/rodeo-crop.coffee
@@ -99,6 +99,9 @@ class Cropper extends Events
isCropped: () ->
@image.cropped
+ getImageSource: ->
+ @image.getSource()
+
setImageSource: (source) ->
@image.setSource source

0 comments on commit e425377

Please sign in to comment.