Forgot to add var self = this;

This commit is contained in:
Simon Huber 2024-03-09 17:38:10 +01:00 committed by GitHub
parent cde2b03534
commit e1f05f82cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,7 @@ DraggableWidget.prototype = new Widget();
Render this widget into the DOM
*/
DraggableWidget.prototype.render = function(parent,nextSibling) {
var self = this,
tag,
var tag,
domNode,
classes = [];
// Save the parent dom node
@ -85,6 +84,7 @@ DraggableWidget.prototype.execute = function() {
Make a DOM node draggable or remove the draggable attr and the EventListeners
*/
DraggableWidget.prototype.makeDraggable = function(domNode) {
var self = this;
if(this.dragEnable) {
// Add event handlers
$tw.utils.makeDraggable({