Skip to content

Commit

Permalink
Remove unnecessary and undocumented bind callback
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Nov 5, 2023
1 parent ae2b073 commit 70eb385
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions croppie.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@
this.elements.img = img;
}

function _bind(options, cb) {
function _bind(options) {
var self = this,
url,
points = [],
Expand Down Expand Up @@ -1015,7 +1015,6 @@
});
_updatePropertiesFromImage.call(self);
_triggerUpdate.call(self);
cb && cb();
});
}

Expand Down Expand Up @@ -1153,8 +1152,8 @@
};

deepExtend(Croppie.prototype, {
bind: function (options, cb) {
return _bind.call(this, options, cb);
bind: function (options) {
return _bind.call(this, options);
},
get: function () {
var data = _get.call(this);
Expand Down

0 comments on commit 70eb385

Please sign in to comment.