{"action":"created","issue":{"url":"https://api.github.com/repos/asafdav/ng-clip/issues/72","labels_url":"https://api.github.com/repos/asafdav/ng-clip/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/asafdav/ng-clip/issues/72/comments","events_url":"https://api.github.com/repos/asafdav/ng-clip/issues/72/events","html_url":"https://github.com/asafdav/ng-clip/issues/72","id":90640168,"number":72,"title":"Fails to copy to clipboard when value is JavaScript","user":{"login":"axelferdinand","id":10460870,"avatar_url":"https://avatars.githubusercontent.com/u/10460870?v=3","gravatar_id":"","url":"https://api.github.com/users/axelferdinand","html_url":"https://github.com/axelferdinand","followers_url":"https://api.github.com/users/axelferdinand/followers","following_url":"https://api.github.com/users/axelferdinand/following{/other_user}","gists_url":"https://api.github.com/users/axelferdinand/gists{/gist_id}","starred_url":"https://api.github.com/users/axelferdinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelferdinand/subscriptions","organizations_url":"https://api.github.com/users/axelferdinand/orgs","repos_url":"https://api.github.com/users/axelferdinand/repos","events_url":"https://api.github.com/users/axelferdinand/events{/privacy}","received_events_url":"https://api.github.com/users/axelferdinand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T10:49:12Z","updated_at":"2015-06-24T11:08:15Z","closed_at":null,"body":"I'm creating a \"copy code\" function that currently is working perfectly copying HTML and SCSS. When I do an attempt to copy a field with JS, nothing happens. If I replace the JS with something else (text, HTML or CSS i.e) it works perfectly. How can we make the script copy JS code?"},"comment":{"url":"https://api.github.com/repos/asafdav/ng-clip/issues/comments/114829774","html_url":"https://github.com/asafdav/ng-clip/issues/72#issuecomment-114829774","issue_url":"https://api.github.com/repos/asafdav/ng-clip/issues/72","id":114829774,"user":{"login":"asafdav","id":1223211,"avatar_url":"https://avatars.githubusercontent.com/u/1223211?v=3","gravatar_id":"","url":"https://api.github.com/users/asafdav","html_url":"https://github.com/asafdav","followers_url":"https://api.github.com/users/asafdav/followers","following_url":"https://api.github.com/users/asafdav/following{/other_user}","gists_url":"https://api.github.com/users/asafdav/gists{/gist_id}","starred_url":"https://api.github.com/users/asafdav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafdav/subscriptions","organizations_url":"https://api.github.com/users/asafdav/orgs","repos_url":"https://api.github.com/users/asafdav/repos","events_url":"https://api.github.com/users/asafdav/events{/privacy}","received_events_url":"https://api.github.com/users/asafdav/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T11:08:15Z","updated_at":"2015-06-24T11:08:15Z","body":"Can you please create a live demo I can check ?\n\nOn Wed, Jun 24, 2015 at 1:49 PM, Axel Ferdinand <notifications@github.com>\nwrote:\n\n> I'm creating a \"copy code\" function that currently is working perfectly\n> copying HTML and SCSS. When I do an attempt to copy a field with JS,\n> nothing happens. If I replace the JS with something else (text, HTML or CSS\n> i.e) it works perfectly. How can we make the script copy JS code?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/asafdav/ng-clip/issues/72>.\n>\n"}}