Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Remove dumb eyedropper filter; images just have to come from the same…
Browse files Browse the repository at this point in the history
… domain
  • Loading branch information
irskep committed Nov 17, 2013
1 parent 748346c commit 2016e69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions coffee/core/tools.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ class LC.Eraser extends LC.Pencil

class LC.Pan extends LC.Tool

begin: (x, y, lc) ->
@start = {x:x, y:y}
begin: (x, y, lc) -> @start = {x, y}

continue: (x, y, lc) ->
lc.pan @start.x - x, @start.y - y
Expand Down
4 changes: 0 additions & 4 deletions coffee/jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ LC.init = (el, opts = {}) ->
LC.PencilWidget, LC.EraserWidget, LC.LineWidget, LC.RectangleWidget,
LC.PanWidget, LC.EyeDropperWidget
]
if opts.watermarkImage and LC.EyeDropperWidget in opts.toolClasses
console.log "Can't use eyedropper if images are present (yet)"
opts.toolClasses = (
cls for cls in opts.toolClasses when cls isnt LC.EyeDropperWidget)

$el = $(el)
$el.addClass('literally')
Expand Down

0 comments on commit 2016e69

Please sign in to comment.