Jump to content


Recommended Posts



I'm struggling with removing an event in my drag & drop code..

		that.pants.once('mousedown', function(mouseData) {			that.pants.on('mousemove', function(mouseData) {				that.pants.position.x += mouseData.data.originalEvent.movementX;				that.pants.position.y += mouseData.data.originalEvent.movementY;													that.pants.once('mouseup', function(mouseData) {					console.log("how do I remove mouse move event?!")				});			});		});

I have tried using callbacks but to no success.. If someone knows what would the syntax look like for the prototypal pseudo-classical pattern I am using.


Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...