Permalink
Browse files

pass the cropEnabled flag through properly

  • Loading branch information...
1 parent 938e217 commit b6b9bda90aeab7bc23f6aabc9fb59f58d7a27d8f @caleb committed Jun 6, 2014
Showing with 4 additions and 3 deletions.
  1. +1 −1 lib/rodeo-crop.coffee
  2. +1 −0 public/index.html
  3. +1 −1 rodeo-crop.js
  4. +1 −1 rodeo-crop.min.js
@@ -71,7 +71,7 @@ class Cropper extends Events
createCropBox: () ->
@cropBox = new CropBox
- enabled: @cropEnabled
+ enabled: @options.cropEnabled
canvas: @canvas
image: @image
cropX: @options.cropX
View
@@ -72,6 +72,7 @@
var hbox = document.querySelector('[name=h]');
cropper = new RodeoCrop.Cropper("#container", {
+ cropEnabled: false,
width: parseInt(w, 10),
height: parseInt(h, 10),
handleSize: 10,
View
@@ -1252,7 +1252,7 @@ define("crop-box",
Cropper.prototype.createCropBox = function() {
this.cropBox = new CropBox({
- enabled: this.cropEnabled,
+ enabled: this.options.cropEnabled,
canvas: this.canvas,
image: this.image,
cropX: this.options.cropX,
View

0 comments on commit b6b9bda

Please sign in to comment.