matplotlib/matplotlib — pull request #2310 by andreabedini (2013-08-19 05:51:43+00:00)
Title: Fix wrong binding of JS this

inside the closure this binds to the WebSocket object rather than to the figure object. I only briefly tested this but its meaning should be apparent.