{"action":"opened","issue":{"url":"https://api.github.com/repos/Raynos/mercury/issues/159","labels_url":"https://api.github.com/repos/Raynos/mercury/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/Raynos/mercury/issues/159/comments","events_url":"https://api.github.com/repos/Raynos/mercury/issues/159/events","html_url":"https://github.com/Raynos/mercury/issues/159","id":68369788,"number":159,"title":"Issue inside the serverside example","user":{"login":"martintietz","id":4154538,"avatar_url":"https://avatars.githubusercontent.com/u/4154538?v=3","gravatar_id":"","url":"https://api.github.com/users/martintietz","html_url":"https://github.com/martintietz","followers_url":"https://api.github.com/users/martintietz/followers","following_url":"https://api.github.com/users/martintietz/following{/other_user}","gists_url":"https://api.github.com/users/martintietz/gists{/gist_id}","starred_url":"https://api.github.com/users/martintietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martintietz/subscriptions","organizations_url":"https://api.github.com/users/martintietz/orgs","repos_url":"https://api.github.com/users/martintietz/repos","events_url":"https://api.github.com/users/martintietz/events{/privacy}","received_events_url":"https://api.github.com/users/martintietz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-14T13:17:27Z","updated_at":"2015-04-14T13:17:27Z","closed_at":null,"body":"The serverside rendering itself is working fine. But there is a problem on the client when the app is started:\r\n```js\r\nhg.app(null, app, App.render, {\r\n    initialTree: prevTree,\r\n    target: targetElem\r\n});\r\n```\r\nThis code does not seem to work with the current version of mercury as hg.app looks like the following:\r\n```js\r\nfunction app(elem, observ, render, opts) {\r\n    if (!elem) {\r\n        throw new Error(\r\n            'Element does not exist. ' +\r\n            'Mercury cannot be initialized.');\r\n    }\r\n\r\n    mercury.Delegator(opts);\r\n    var loop = mercury.main(observ(), render, extend({\r\n        diff: mercury.diff,\r\n        create: mercury.create,\r\n        patch: mercury.patch\r\n    }, opts));\r\n\r\n    elem.appendChild(loop.target);\r\n\r\n    return observ(loop.update);\r\n}\r\n```"}}