Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leap Motion inputs' context #98

Open
Goutte opened this issue Jan 11, 2014 · 1 comment
Open

Leap Motion inputs' context #98

Goutte opened this issue Jan 11, 2014 · 1 comment

Comments

@Goutte
Copy link
Contributor

Goutte commented Jan 11, 2014

Hi !

I pulled the latest Jax (the shader awesomeness), and I found out a bug that's puzzling me : this now references window in my controller's leap_hand_translated method, instead of the controller itself.

I don't know if you're aware of this, the branch being a work in progress ; I don't know how to fix it (besides monkey-patching my controller by re-assigning this), or I would have ;).


As a side note, I had no occasion to delve into the new shaders, so I cannot provide constructive feedback except that I trust you entirely on this matter. 🐹

@Goutte
Copy link
Contributor Author

Goutte commented Jan 12, 2014

Note that this has the expected value when I'm using => to define the method, as in :

class AwesomeController extends Jax.Controller
  leap_hand_translated: (e) =>
    console.log this

(which is pretty much the same as re-assigning this, but hey, it works !)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant