Skip to content

Instantly share code, notes, and snippets.

View diegoliv's full-sized avatar

Diego de Oliveira diegoliv

View GitHub Profile
return View.extend({
initialize: function () {
this.el.attr("draggable", "true")
this.el.bind("dragstart", _.bind(this._dragStartEvent, this))
},
_dragStartEvent: function (e) {
var data
if (e.originalEvent) e = e.originalEvent
e.dataTransfer.effectAllowed = "copy" // default to copy