How to use removeEvent?

19 views
Skip to first unread message

Михаил Суходаев

unread,
Jan 24, 2019, 8:34:03 AM1/24/19
to Crafty

Crafty.addEvent(this, Crafty.stage.elem, "mouseover", function(e){
console.log("mouseover stage");
Crafty.removeEvent(this, Crafty.stage.elem, "mouseover", function(e){
console.log("remove");
});
});

It is necessary that "mouseover"worked only once. But removeEvent does not work.
Reply all
Reply to author
Forward
0 new messages