sinisterchipmunk / jax

Framework for creating rich WebGL-enabled applications using JavaScript and Ruby
http://jaxgl.com
MIT License
96 stars 16 forks source link

After redirect, `Jax.Context` can call input methods that don't exist #71

Closed sinisterchipmunk closed 11 years ago

sinisterchipmunk commented 11 years ago

Scenario:

Jax.Controller.create "one",
  mouse_clicked: ->
  index: ->

Jax.Controller.create "two",
  index: ->

c = new Jax.Context
c.redirectTo "one"
c.redirectTo "two"

Now click on the canvas; you'll get an undefined method error as context c tries to call mouse_clicked on controller two.