title: Pyjamas & JavaScript: Too much recursion
body: <p>I'm doing a <a href="http://web2py.com/book/default/section/9/2" rel="nofollow noreferrer">Pyjamas example</a> and get this error:</p>
  
  <pre><code>TodoApp InternalError: too much recursion
  </code></pre>
  
  <p>Here is the significant portion of <em>TodoApp.py</em> from the linked tutorial (please ignore indentation from the copy/paste): </p>
  
  <pre><code>class TodoApp:
  def onModuleLoad(self):
      self.remote = DataService()
      panel = VerticalPanel()
  
      self.todoTextBox = TextBox()
      self.todoTextBox.addKeyboardListener(self)
  
      self.todoList = ListBox()
      self.todoList.setVisibleItemCount(7)
      self.todoList.setWidth("200px")
      self.todoList.addClickListener(self)
      self.Status = Label("")
  
      panel.add(Label("Add New Todo:"))
      panel.add(self.todoTextBox)
      panel.add(Label("Click to Remove:"))
      panel.add(self.todoList)
      panel.add(self.Status)
      self.remote.getTasks(self)
  
      RootPanel().add(panel)
  
  class DataService(JSONProxy):
  def __init__(self):
      JSONProxy.__init__(self, "../../default/call/jsonrpc", 
                         ["getTasks", "addTask", "deleteTask"])
  </code></pre>
  
  <p>Has anyone else encountered this?</p>
  
  <p>Some articles around the web recommend adjusting the C++ code of your
  browser to fix it, but that doesn't seem safe to me. </p>