var DragOp = function() {}; DragOp.prototype = { start: function(){}, drag: function(){}, end: function(){}, isSameItem: function() { return false; } }; var SlideDrag = function(opts) { this.dragThresholdX = opts.dragThresholdX || 10; this.el = opts.el; this.item = opts.item; this.canSwipe = opts.canSwipe; }; SlideDrag.prototype = new DragOp();
添加回答
举报
0/150
提交
取消