Update dragndrop.js - remove unnecessary variable

This commit is contained in:
Simon Huber 2024-03-11 08:19:45 +01:00 committed by GitHub
parent ba8304e0d0
commit e98ca4a180
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ widget: widget to use as the context for the filter
exports.makeDraggable = function(options) {
var dragImageType = options.dragImageType || "dom",
dragImage,
domNode = options.domNode,
removeEventHandler = options.remove;
domNode = options.domNode;
// Make the dom node draggable (not necessary for anchor tags)
if(!options.selector && ((domNode.tagName || "").toLowerCase() !== "a")) {
domNode.setAttribute("draggable","true");