Home How to add listener inside html5-sortable-angularjs event?
 I am using this plugin https://github.com/bachvtuan/html5-sortable-angularjs/ and I need to add a listener inside an event. The documentation only gives the following example. //Options for sortable code \$scope.sortable_option = { //Only allow draggable when click on handle element handle:'p.handle', //Construct method before sortable code construct:function(model){ for ( var i = 0; i < model.length; i++ ){ model[i].letter +=" (constructed)"; } }, //Callback after item is dropped stop:function(list, dropped_index){ list[ dropped_index].letter += " Dropped"; } };  I need to add e.preventDefault(); to the handleDragEnter event. I need this because I implemented a fix for the drag feature on mobile and it needs this to work. This works when added directly to the plugin but obviously I don't want to modify the plugin itself. sortable.handleDragEnter = function(e) { e.preventDefault(); };