Skip to content

Commit

Permalink
Fixed broken variable reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tapmodo committed Jun 7, 2011
1 parent bf1e11f commit 5e58bc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/jquery.Jcrop.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@
duration: options.fadeTime duration: options.fadeTime
}); });
} else { } else {
div.css('backgroundColor', options.bgColor); $div.css('backgroundColor', options.bgColor);
} }


delete(options.bgColor); delete(options.bgColor);
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.Jcrop.min.js
Original file line number Original file line Diff line number Diff line change
@@ -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 * jQuery Image Cropping Plugin
* @author Kelly Hallman <khallman@gmail.com> * @author Kelly Hallman <khallman@gmail.com>
* Copyright (c) 2008-2011 Kelly Hallman - released under MIT License * Copyright (c) 2008-2011 Kelly Hallman - released under MIT License
Expand Down Expand Up @@ -228,7 +228,7 @@ function interfaceUpdate(alt)
{if(options.allowResize){if(alt){Selection.enableOnly();}else{Selection.enableHandles();}}else{Selection.disableHandles();} {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);} 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('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);} 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);}} 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);} delete(options.bgOpacity);}
Expand Down

0 comments on commit 5e58bc9

Please sign in to comment.