Closed ebihimself closed 4 years ago
try replacing arrow functions with normal functions that should help.
drag(block) { block.classList.add("blockdisabled"); this.tempblock2 = block; }
I don't think that it has something to do with the arrow function as I think the "this" keyword is not defined in the flowy.min.js as I pass the object of the drag method to the flowy. and the method is trying to find the property there.
Update The change you mentioned didn't fix.
drag(block) { block.classList.add("blockdisabled"); this.tempblock2 = block; }
I tried to implement the object orient of the main.js as below:
but I receive the error because this is not in the callback scope:
Is there any way that I can pass "this" property to the callbacks?