{"action":"created","issue":{"url":"https://api.github.com/repos/patrick-steele-idem/morphdom/issues/75","repository_url":"https://api.github.com/repos/patrick-steele-idem/morphdom","labels_url":"https://api.github.com/repos/patrick-steele-idem/morphdom/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/patrick-steele-idem/morphdom/issues/75/comments","events_url":"https://api.github.com/repos/patrick-steele-idem/morphdom/issues/75/events","html_url":"https://github.com/patrick-steele-idem/morphdom/issues/75","id":165121884,"number":75,"title":"how to preserve attributes","user":{"login":"francescoagati","id":175524,"avatar_url":"https://avatars.githubusercontent.com/u/175524?v=3","gravatar_id":"","url":"https://api.github.com/users/francescoagati","html_url":"https://github.com/francescoagati","followers_url":"https://api.github.com/users/francescoagati/followers","following_url":"https://api.github.com/users/francescoagati/following{/other_user}","gists_url":"https://api.github.com/users/francescoagati/gists{/gist_id}","starred_url":"https://api.github.com/users/francescoagati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescoagati/subscriptions","organizations_url":"https://api.github.com/users/francescoagati/orgs","repos_url":"https://api.github.com/users/francescoagati/repos","events_url":"https://api.github.com/users/francescoagati/events{/privacy}","received_events_url":"https://api.github.com/users/francescoagati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-12T16:34:16Z","updated_at":"2016-07-12T19:55:00Z","closed_at":null,"body":"Hi,\r\ni am playing with morphdom. in this example i see that the dom is redraw every time. ok can i preserve the dom and node attributes every refresh frame?\r\n\r\nhttp://codepen.io/francescoagati/pen/KrymZL?editors=1010"},"comment":{"url":"https://api.github.com/repos/patrick-steele-idem/morphdom/issues/comments/232160199","html_url":"https://github.com/patrick-steele-idem/morphdom/issues/75#issuecomment-232160199","issue_url":"https://api.github.com/repos/patrick-steele-idem/morphdom/issues/75","id":232160199,"user":{"login":"AutoSponge","id":654530,"avatar_url":"https://avatars.githubusercontent.com/u/654530?v=3","gravatar_id":"","url":"https://api.github.com/users/AutoSponge","html_url":"https://github.com/AutoSponge","followers_url":"https://api.github.com/users/AutoSponge/followers","following_url":"https://api.github.com/users/AutoSponge/following{/other_user}","gists_url":"https://api.github.com/users/AutoSponge/gists{/gist_id}","starred_url":"https://api.github.com/users/AutoSponge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutoSponge/subscriptions","organizations_url":"https://api.github.com/users/AutoSponge/orgs","repos_url":"https://api.github.com/users/AutoSponge/repos","events_url":"https://api.github.com/users/AutoSponge/events{/privacy}","received_events_url":"https://api.github.com/users/AutoSponge/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T19:55:00Z","updated_at":"2016-07-12T19:55:00Z","body":"Not sure I understand the question. When I opened the devtools, I could see the pippa element being updated non-destructively. I would say that the animation looks smoother when you write it like this:\r\n\r\n```livescript\r\nviewport = document.getElementById 'viewport'\r\n\r\ncounter = 0\r\n\r\nfn = -> \r\n  counter++\r\n  \r\n  morphdom  viewport,'<div id=\"pippo\"><div id=\"pippa\" style=\"position:fixed;left:' + counter + 'px\" class=\"baraaaa\">Hello ' + counter + '</div><div>',childrenOnly:true\r\n  \r\nsetInterval fn, 40\r\n```"}}
{"actor":{"display_login":"AutoSponge"}}