Sha256: 9a72ddc140cdf07504c4669f1cdb64941feb7127fced6e94144ce5e14673eded
Contents?: true
Size: 576 Bytes
Versions: 36
Compression:
Stored size: 576 Bytes
Contents
class MrDragModel extends AngularLinkModel initialize: -> @_element().draggable = true @_element().addEventListener 'dragstart', @_dragStart @_element().addEventListener 'dragend', @_dragEnd _element: -> @$element[0] _dragStart: (event) => @$scope.$event = event event.dataTransfer.setData('html',@_element()) @$element.addClass('drag') @$scope.$eval(@$attrs.mrDrag) _dragEnd: (event) => @$scope.$event = event @$element.removeClass('drag') @$scope.$eval(@$attrs.mrDragEnd) if @$attrs.mrDragEnd @register(Directives.MrDrag)
Version data entries
36 entries across 36 versions & 1 rubygems