ImgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).
I suggest you to check if "$.imgAreaSelect.onKeyPress" exists before unbinding "keydown" event or it will also unbind all other handlers outside the plugin.
Hi,
I suggest you to check if "$.imgAreaSelect.onKeyPress" exists before unbinding "keydown" event or it will also unbind all other handlers outside the plugin.
if ($.imgAreaSelect.keyPress != docKeyPress && typeof($.imgAreaSelect.onKeyPress) != 'undefined' ) $(document).unbind($.imgAreaSelect.keyPress, $.imgAreaSelect.onKeyPress);