{"action":"created","issue":{"url":"https://api.github.com/repos/lift/framework/issues/1771","repository_url":"https://api.github.com/repos/lift/framework","labels_url":"https://api.github.com/repos/lift/framework/issues/1771/labels{/name}","comments_url":"https://api.github.com/repos/lift/framework/issues/1771/comments","events_url":"https://api.github.com/repos/lift/framework/issues/1771/events","html_url":"https://github.com/lift/framework/pull/1771","id":133582964,"number":1771,"title":"Trim page-specific javascript","user":{"login":"joescii","id":882948,"avatar_url":"https://avatars.githubusercontent.com/u/882948?v=3","gravatar_id":"","url":"https://api.github.com/users/joescii","html_url":"https://github.com/joescii","followers_url":"https://api.github.com/users/joescii/followers","following_url":"https://api.github.com/users/joescii/following{/other_user}","gists_url":"https://api.github.com/users/joescii/gists{/gist_id}","starred_url":"https://api.github.com/users/joescii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joescii/subscriptions","organizations_url":"https://api.github.com/users/joescii/orgs","repos_url":"https://api.github.com/users/joescii/repos","events_url":"https://api.github.com/users/joescii/events{/privacy}","received_events_url":"https://api.github.com/users/joescii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-14T21:39:43Z","updated_at":"2016-02-18T04:17:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lift/framework/pulls/1771","html_url":"https://github.com/lift/framework/pull/1771","diff_url":"https://github.com/lift/framework/pull/1771.diff","patch_url":"https://github.com/lift/framework/pull/1771.patch"},"body":"This PR defines `JsCmds.trimNoops(JsCmd):JsCmd` along with helper function `JsCmds.toList(JsCmd):List[JsCmd]` which is now called when we assemble the page-specific JS to remove a large number of unnecessary newlines.\r\n\r\nSee ML thread [here](https://groups.google.com/forum/#!topic/liftweb/ojR6TfrZhIQ)."},"comment":{"url":"https://api.github.com/repos/lift/framework/issues/comments/185536003","html_url":"https://github.com/lift/framework/pull/1771#issuecomment-185536003","issue_url":"https://api.github.com/repos/lift/framework/issues/1771","id":185536003,"user":{"login":"Shadowfiend","id":8245,"avatar_url":"https://avatars.githubusercontent.com/u/8245?v=3","gravatar_id":"","url":"https://api.github.com/users/Shadowfiend","html_url":"https://github.com/Shadowfiend","followers_url":"https://api.github.com/users/Shadowfiend/followers","following_url":"https://api.github.com/users/Shadowfiend/following{/other_user}","gists_url":"https://api.github.com/users/Shadowfiend/gists{/gist_id}","starred_url":"https://api.github.com/users/Shadowfiend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shadowfiend/subscriptions","organizations_url":"https://api.github.com/users/Shadowfiend/orgs","repos_url":"https://api.github.com/users/Shadowfiend/repos","events_url":"https://api.github.com/users/Shadowfiend/events{/privacy}","received_events_url":"https://api.github.com/users/Shadowfiend/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T04:17:57Z","updated_at":"2016-02-18T04:17:57Z","body":"This all seems like a lot of work… Why don't we just make `CmdPair` ignore `Noop`s in its `toJsCmd`?"}}