Skip to content

Instantly share code, notes, and snippets.

@buger
Created January 27, 2012 09:25
Show Gist options
  • Save buger/1687945 to your computer and use it in GitHub Desktop.
Save buger/1687945 to your computer and use it in GitHub Desktop.
Matching js
  if top is window
    bindReady =>
      @client  = new ClientInfo

should become

  if top is window
     @client  = new ClientInfo

When sending data about client we doing this:

callJSONP url, params, (resp) => @applyResponse resp

Should become this:

callJSONP url, params, (resp) => @cache = resp

And finally

 bindReady => @client.appyResponse(@cache)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment