{"issue":{"state":"closed","pull_request":{"diff_url":"https://github.com/rightjs/rightjs-core/pull/18.diff","html_url":"https://github.com/rightjs/rightjs-core/pull/18","patch_url":"https://github.com/rightjs/rightjs-core/pull/18.patch"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/3cd1aea8a39b32b4b2ef859ba64b3fd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3cd1aea8a39b32b4b2ef859ba64b3fd7","url":"https://api.github.com/users/pyromaniac","login":"pyromaniac","id":88852},"milestone":null,"updated_at":"2011-11-06T11:14:42Z","labels":[],"assignee":null,"comments":10,"closed_at":"2011-11-05T09:41:46Z","url":"https://api.github.com/repos/rightjs/rightjs-core/issues/18","body":"Я таки сделал это. Кажется.","html_url":"https://github.com/rightjs/rightjs-core/issues/18","number":18,"title":"data()","id":2148949,"created_at":"2011-11-04T21:58:12Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/3cd1aea8a39b32b4b2ef859ba64b3fd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3cd1aea8a39b32b4b2ef859ba64b3fd7","url":"https://api.github.com/users/pyromaniac","login":"pyromaniac","id":88852},"updated_at":"2011-11-06T11:14:42Z","url":"https://api.github.com/repos/rightjs/rightjs-core/issues/comments/2644853","body":"Прелесть data не только в том, что можно читать и писать аттрибуты, преобразуя их в структуры данных, но и доступе разной степени вложенности. То есть, если напишу у элемента <a \"data-remote-url\"=\"/hello\">, то a.data('remote') должен вернуть {url: 'hello'}, да и добавленные data данные ни к чему писать как data- аттрибуты - только dom нагружать. Достаточно хранить данные в элементе. data- аттрибуты нужны только для того чтобы инициализировать некоторые части data хеша при загрузке страницы.","id":2644853,"created_at":"2011-11-06T11:14:42Z"}}