What's the best practice: to bind or not to bind or do something else?

Again it’s hard giving feedback on a snippet of code without context but It does look awkward to me how you’re putting everything into an object, it doesn’t look like it serves a purpose. It’s possible just to have the functions in the scope of that module refer to each other without the wrapping object.

var disable = function() {};
var drop = function(ev) {
  disable();
};

module.exports = {
  disable,
  drop,
};
1 Like