{"action":"created","issue":{"url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/issues/882","repository_url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design","labels_url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/issues/882/comments","events_url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/issues/882/events","html_url":"https://github.com/FezVrasta/bootstrap-material-design/pull/882","id":135036446,"number":882,"title":"Make markup changes idempotent","user":{"login":"mintuhouse","id":769950,"avatar_url":"https://avatars.githubusercontent.com/u/769950?v=3","gravatar_id":"","url":"https://api.github.com/users/mintuhouse","html_url":"https://github.com/mintuhouse","followers_url":"https://api.github.com/users/mintuhouse/followers","following_url":"https://api.github.com/users/mintuhouse/following{/other_user}","gists_url":"https://api.github.com/users/mintuhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/mintuhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mintuhouse/subscriptions","organizations_url":"https://api.github.com/users/mintuhouse/orgs","repos_url":"https://api.github.com/users/mintuhouse/repos","events_url":"https://api.github.com/users/mintuhouse/events{/privacy}","received_events_url":"https://api.github.com/users/mintuhouse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-20T05:43:10Z","updated_at":"2016-02-22T15:47:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/pulls/882","html_url":"https://github.com/FezVrasta/bootstrap-material-design/pull/882","diff_url":"https://github.com/FezVrasta/bootstrap-material-design/pull/882.diff","patch_url":"https://github.com/FezVrasta/bootstrap-material-design/pull/882.patch"},"body":"(on a ruby on rails application with turbolinks)\r\nWhen I press browser back and forward, the initialization code runs again creating double elements"},"comment":{"url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/issues/comments/187238414","html_url":"https://github.com/FezVrasta/bootstrap-material-design/pull/882#issuecomment-187238414","issue_url":"https://api.github.com/repos/FezVrasta/bootstrap-material-design/issues/882","id":187238414,"user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T15:47:08Z","updated_at":"2016-02-22T15:47:08Z","body":"If `notmdproc` is not working, we should fix it, not spread a bunch of changes throughout the code to check for existence of these elements.  v4 is slightly different but worth looking at https://github.com/FezVrasta/bootstrap-material-design/blob/v4-dev/js/src/bootstrapMaterialDesign.js#L176\r\n\r\nI haven't tested it with turbolinks yet, but I expect it to work because we are using it directly from the bootstrap implementation."}}