Permalink
Browse files

Fixed broken variable reference

  • Loading branch information...
1 parent bf1e11f commit 5e58bc9c1c5ac777a195b935976e168e0d66ea2e @tapmodo committed Jun 7, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 js/jquery.Jcrop.js
  2. +2 −2 js/jquery.Jcrop.min.js
View
@@ -1415,7 +1415,7 @@
duration: options.fadeTime
});
} else {
- div.css('backgroundColor', options.bgColor);
+ $div.css('backgroundColor', options.bgColor);
}
delete(options.bgColor);
View
@@ -1,5 +1,5 @@
/**
- * jquery.Jcrop.min.js v0.9.9 (build:20110425)
+ * jquery.Jcrop.min.js v0.9.9 (build:20110607)
* jQuery Image Cropping Plugin
* @author Kelly Hallman <khallman@gmail.com>
* Copyright (c) 2008-2011 Kelly Hallman - released under MIT License
@@ -228,7 +228,7 @@ function interfaceUpdate(alt)
{if(options.allowResize){if(alt){Selection.enableOnly();}else{Selection.enableHandles();}}else{Selection.disableHandles();}
Tracker.setCursor(options.allowSelect?'crosshair':'default');Selection.setCursor(options.allowMove?'move':'default');if(options.hasOwnProperty('setSelect')){setSelect(options.setSelect);Selection.done();delete(options.setSelect);}
if(options.hasOwnProperty('trueSize')){xscale=options.trueSize[0]/boundx;yscale=options.trueSize[1]/boundy;}
-if(options.hasOwnProperty('bgColor')){if(supportsColorFade()&&options.fadeTime){$div.animate({backgroundColor:options.bgColor},{queue:false,duration:options.fadeTime});}else{div.css('backgroundColor',options.bgColor);}
+if(options.hasOwnProperty('bgColor')){if(supportsColorFade()&&options.fadeTime){$div.animate({backgroundColor:options.bgColor},{queue:false,duration:options.fadeTime});}else{$div.css('backgroundColor',options.bgColor);}
delete(options.bgColor);}
if(options.hasOwnProperty('bgOpacity')){bgopacity=options.bgOpacity;if(Selection.isAwake()){if(options.fadeTime){$img.fadeTo(options.fadeTime,bgopacity);}else{$div.css('opacity',options.opacity);}}
delete(options.bgOpacity);}

0 comments on commit 5e58bc9

Please sign in to comment.