{"action":"created","issue":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/2062","labels_url":"https://api.github.com/repos/ractivejs/ractive/issues/2062/labels{/name}","comments_url":"https://api.github.com/repos/ractivejs/ractive/issues/2062/comments","events_url":"https://api.github.com/repos/ractivejs/ractive/issues/2062/events","html_url":"https://github.com/ractivejs/ractive/issues/2062","id":99521771,"number":2062,"title":"How can I set partial parameter with only knowing its DOMNode?","user":{"login":"ceremcem","id":6639874,"avatar_url":"https://avatars.githubusercontent.com/u/6639874?v=3","gravatar_id":"","url":"https://api.github.com/users/ceremcem","html_url":"https://github.com/ceremcem","followers_url":"https://api.github.com/users/ceremcem/followers","following_url":"https://api.github.com/users/ceremcem/following{/other_user}","gists_url":"https://api.github.com/users/ceremcem/gists{/gist_id}","starred_url":"https://api.github.com/users/ceremcem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceremcem/subscriptions","organizations_url":"https://api.github.com/users/ceremcem/orgs","repos_url":"https://api.github.com/users/ceremcem/repos","events_url":"https://api.github.com/users/ceremcem/events{/privacy}","received_events_url":"https://api.github.com/users/ceremcem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ractivejs/ractive/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-06T20:48:28Z","updated_at":"2015-11-06T22:25:11Z","closed_at":null,"body":"Hi, \r\n\r\nI want to set a partial's parameter with only knowing its DOMNode which I find with jQuery. I can get the data, but I can not set: \r\n\r\n```js\r\nsetStatusLeds = function(){\r\n  return $('.status-led').each(function(){\r\n    var jqElem, pinName, actor, ractiveNode, ractiveData;\r\n    jqElem = $(this);\r\n    console.log(jqElem);\r\n    ractiveNode = Ractive.getNodeInfo(jqElem.get(0));\r\n    ractiveData = app.get(ractiveNode['keypath']);\r\n    ractiveData['state'] = false;\r\n    ractiveNode['ractive'].set(ractiveData);\r\n    ractiveNode['ractive'].updateModel();\r\n    return console.log(\"view.get: \", ractiveNode['ractive']);\r\n  });\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/comments/154561250","html_url":"https://github.com/ractivejs/ractive/issues/2062#issuecomment-154561250","issue_url":"https://api.github.com/repos/ractivejs/ractive/issues/2062","id":154561250,"user":{"login":"ceremcem","id":6639874,"avatar_url":"https://avatars.githubusercontent.com/u/6639874?v=3","gravatar_id":"","url":"https://api.github.com/users/ceremcem","html_url":"https://github.com/ceremcem","followers_url":"https://api.github.com/users/ceremcem/followers","following_url":"https://api.github.com/users/ceremcem/following{/other_user}","gists_url":"https://api.github.com/users/ceremcem/gists{/gist_id}","starred_url":"https://api.github.com/users/ceremcem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceremcem/subscriptions","organizations_url":"https://api.github.com/users/ceremcem/orgs","repos_url":"https://api.github.com/users/ceremcem/repos","events_url":"https://api.github.com/users/ceremcem/events{/privacy}","received_events_url":"https://api.github.com/users/ceremcem/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T22:25:11Z","updated_at":"2015-11-06T22:25:11Z","body":"Thank you for the explanation. As we build a relatively big [system with a partial module](https://github.com/ceremcem/aktos-website/tree/master/app/partials), I want to ask you if there would be a performance difference between component mechanism and [the patched version of ractive.js by me](https://github.com/ractivejs/ractive/issues/2062#issuecomment-139078828) before converting all partials to components. "}}