Fixes disabling of clicking after crop is deleted and added test for the cropUI (#1481)

* crop-ui

* crop-ui

* Added test

* Adding test

* improving comments

Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
keshav234156
2020-01-17 03:48:34 +05:30
committed by Jeffrey Warren
parent 1a0f4d4042
commit d1b9b8becc
3 changed files with 49 additions and 8 deletions

View File

@@ -59,12 +59,6 @@ module.exports = function CropModuleUi(step, ui) {
];
}
function remove() {
$(imgEl()).imgAreaSelect({
remove: true
});
}
function hide() {
// then hide the draggable UI
$(imgEl()).imgAreaSelect({
@@ -92,7 +86,6 @@ module.exports = function CropModuleUi(step, ui) {
return {
setup: setup,
remove: remove,
hide: hide
};
};