@ -9,6 +9,17 @@ define(['./ComponentText'],
traits: ['title', 'href', 'target'],
}),
/**
* Returns object of attributes for HTML
* @return {Object}
* @private
*/
getAttrToHTML: function() {
var attr = Component.prototype.getAttrToHTML.apply(this, arguments);
delete attr.onmousedown;
return attr;
},
},{
@ -12,5 +12,13 @@ define(['backbone', './ComponentTextView'],
e.preventDefault();
render: function() {
ComponentView.prototype.render.apply(this, arguments);
// Avoid strange behaviours while try to drag
//this.$el.attr('onmousedown', 'return false');
return this;
});