{"action":"created","issue":{"url":"https://api.github.com/repos/zenorocha/clipboard.js/issues/25","labels_url":"https://api.github.com/repos/zenorocha/clipboard.js/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/zenorocha/clipboard.js/issues/25/comments","events_url":"https://api.github.com/repos/zenorocha/clipboard.js/issues/25/events","html_url":"https://github.com/zenorocha/clipboard.js/issues/25","id":109045837,"number":25,"title":"Idea: pass in the elements","user":{"login":"kmalakoff","id":756520,"avatar_url":"https://avatars.githubusercontent.com/u/756520?v=3","gravatar_id":"","url":"https://api.github.com/users/kmalakoff","html_url":"https://github.com/kmalakoff","followers_url":"https://api.github.com/users/kmalakoff/followers","following_url":"https://api.github.com/users/kmalakoff/following{/other_user}","gists_url":"https://api.github.com/users/kmalakoff/gists{/gist_id}","starred_url":"https://api.github.com/users/kmalakoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmalakoff/subscriptions","organizations_url":"https://api.github.com/users/kmalakoff/orgs","repos_url":"https://api.github.com/users/kmalakoff/repos","events_url":"https://api.github.com/users/kmalakoff/events{/privacy}","received_events_url":"https://api.github.com/users/kmalakoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T09:05:21Z","updated_at":"2015-10-01T00:20:46Z","closed_at":null,"body":"With single page apps, you may want to manage the lifecycle of the DOM more precisely. \r\n\r\nWhat I would like would be for a way to provide a single element or list of elements that are used instead of having the library use the selector to find elements on the document. Otherwise, it feels like jQuery spaghetti by adding extra classes to HTML (FYI: I'm using React refs to find elements).\r\n"},"comment":{"url":"https://api.github.com/repos/zenorocha/clipboard.js/issues/comments/144581360","html_url":"https://github.com/zenorocha/clipboard.js/issues/25#issuecomment-144581360","issue_url":"https://api.github.com/repos/zenorocha/clipboard.js/issues/25","id":144581360,"user":{"login":"zenorocha","id":398893,"avatar_url":"https://avatars.githubusercontent.com/u/398893?v=3","gravatar_id":"","url":"https://api.github.com/users/zenorocha","html_url":"https://github.com/zenorocha","followers_url":"https://api.github.com/users/zenorocha/followers","following_url":"https://api.github.com/users/zenorocha/following{/other_user}","gists_url":"https://api.github.com/users/zenorocha/gists{/gist_id}","starred_url":"https://api.github.com/users/zenorocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenorocha/subscriptions","organizations_url":"https://api.github.com/users/zenorocha/orgs","repos_url":"https://api.github.com/users/zenorocha/repos","events_url":"https://api.github.com/users/zenorocha/events{/privacy}","received_events_url":"https://api.github.com/users/zenorocha/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T00:20:46Z","updated_at":"2015-10-01T00:20:46Z","body":"That's a valid use case, thanks for suggesting @kmalakoff."}}