{"action":"opened","number":1022,"pull_request":{"url":"https://api.github.com/repos/vitmalina/w2ui/pulls/1022","id":42783160,"html_url":"https://github.com/vitmalina/w2ui/pull/1022","diff_url":"https://github.com/vitmalina/w2ui/pull/1022.diff","patch_url":"https://github.com/vitmalina/w2ui/pull/1022.patch","issue_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1022","number":1022,"state":"open","locked":false,"title":"Fix #1017 and slightly improve w2popup performance","user":{"login":"Delgan","id":4193924,"avatar_url":"https://avatars.githubusercontent.com/u/4193924?v=3","gravatar_id":"","url":"https://api.github.com/users/Delgan","html_url":"https://github.com/Delgan","followers_url":"https://api.github.com/users/Delgan/followers","following_url":"https://api.github.com/users/Delgan/following{/other_user}","gists_url":"https://api.github.com/users/Delgan/gists{/gist_id}","starred_url":"https://api.github.com/users/Delgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delgan/subscriptions","organizations_url":"https://api.github.com/users/Delgan/orgs","repos_url":"https://api.github.com/users/Delgan/repos","events_url":"https://api.github.com/users/Delgan/events{/privacy}","received_events_url":"https://api.github.com/users/Delgan/received_events","type":"User","site_admin":false},"body":"Because the content of `body` attribute is added twice into the document, this fix just remove every `<script>` tags the first time, so they are executed only once at the end.\r\n\r\nMoreover, as parsing html string is quite costly, I used a variable to store the result instead of parsing it twice.","created_at":"2015-08-19T07:11:45Z","updated_at":"2015-08-19T07:11:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vitmalina/w2ui/pulls/1022/commits","review_comments_url":"https://api.github.com/repos/vitmalina/w2ui/pulls/1022/comments","review_comment_url":"https://api.github.com/repos/vitmalina/w2ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1022/comments","statuses_url":"https://api.github.com/repos/vitmalina/w2ui/statuses/73c2657ea0d854076660f0869271e0e2edb2d416","head":{"label":"Delgan:patch-1","ref":"patch-1","sha":"73c2657ea0d854076660f0869271e0e2edb2d416","user":{"login":"Delgan","id":4193924,"avatar_url":"https://avatars.githubusercontent.com/u/4193924?v=3","gravatar_id":"","url":"https://api.github.com/users/Delgan","html_url":"https://github.com/Delgan","followers_url":"https://api.github.com/users/Delgan/followers","following_url":"https://api.github.com/users/Delgan/following{/other_user}","gists_url":"https://api.github.com/users/Delgan/gists{/gist_id}","starred_url":"https://api.github.com/users/Delgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delgan/subscriptions","organizations_url":"https://api.github.com/users/Delgan/orgs","repos_url":"https://api.github.com/users/Delgan/repos","events_url":"https://api.github.com/users/Delgan/events{/privacy}","received_events_url":"https://api.github.com/users/Delgan/received_events","type":"User","site_admin":false},"repo":{"id":41018963,"name":"w2ui","full_name":"Delgan/w2ui","owner":{"login":"Delgan","id":4193924,"avatar_url":"https://avatars.githubusercontent.com/u/4193924?v=3","gravatar_id":"","url":"https://api.github.com/users/Delgan","html_url":"https://github.com/Delgan","followers_url":"https://api.github.com/users/Delgan/followers","following_url":"https://api.github.com/users/Delgan/following{/other_user}","gists_url":"https://api.github.com/users/Delgan/gists{/gist_id}","starred_url":"https://api.github.com/users/Delgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delgan/subscriptions","organizations_url":"https://api.github.com/users/Delgan/orgs","repos_url":"https://api.github.com/users/Delgan/repos","events_url":"https://api.github.com/users/Delgan/events{/privacy}","received_events_url":"https://api.github.com/users/Delgan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Delgan/w2ui","description":"JavaScript UI library for data-driven web applications","fork":true,"url":"https://api.github.com/repos/Delgan/w2ui","forks_url":"https://api.github.com/repos/Delgan/w2ui/forks","keys_url":"https://api.github.com/repos/Delgan/w2ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Delgan/w2ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Delgan/w2ui/teams","hooks_url":"https://api.github.com/repos/Delgan/w2ui/hooks","issue_events_url":"https://api.github.com/repos/Delgan/w2ui/issues/events{/number}","events_url":"https://api.github.com/repos/Delgan/w2ui/events","assignees_url":"https://api.github.com/repos/Delgan/w2ui/assignees{/user}","branches_url":"https://api.github.com/repos/Delgan/w2ui/branches{/branch}","tags_url":"https://api.github.com/repos/Delgan/w2ui/tags","blobs_url":"https://api.github.com/repos/Delgan/w2ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Delgan/w2ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Delgan/w2ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/Delgan/w2ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Delgan/w2ui/statuses/{sha}","languages_url":"https://api.github.com/repos/Delgan/w2ui/languages","stargazers_url":"https://api.github.com/repos/Delgan/w2ui/stargazers","contributors_url":"https://api.github.com/repos/Delgan/w2ui/contributors","subscribers_url":"https://api.github.com/repos/Delgan/w2ui/subscribers","subscription_url":"https://api.github.com/repos/Delgan/w2ui/subscription","commits_url":"https://api.github.com/repos/Delgan/w2ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/Delgan/w2ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/Delgan/w2ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/Delgan/w2ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/Delgan/w2ui/contents/{+path}","compare_url":"https://api.github.com/repos/Delgan/w2ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Delgan/w2ui/merges","archive_url":"https://api.github.com/repos/Delgan/w2ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Delgan/w2ui/downloads","issues_url":"https://api.github.com/repos/Delgan/w2ui/issues{/number}","pulls_url":"https://api.github.com/repos/Delgan/w2ui/pulls{/number}","milestones_url":"https://api.github.com/repos/Delgan/w2ui/milestones{/number}","notifications_url":"https://api.github.com/repos/Delgan/w2ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Delgan/w2ui/labels{/name}","releases_url":"https://api.github.com/repos/Delgan/w2ui/releases{/id}","created_at":"2015-08-19T07:08:39Z","updated_at":"2015-08-19T07:08:40Z","pushed_at":"2015-08-19T07:10:23Z","git_url":"git://github.com/Delgan/w2ui.git","ssh_url":"git@github.com:Delgan/w2ui.git","clone_url":"https://github.com/Delgan/w2ui.git","svn_url":"https://github.com/Delgan/w2ui","homepage":"http://w2ui.com","size":25721,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vitmalina:master","ref":"master","sha":"316344c096c4faaaf1dea1e46871f46cc2728922","user":{"login":"vitmalina","id":561995,"avatar_url":"https://avatars.githubusercontent.com/u/561995?v=3","gravatar_id":"","url":"https://api.github.com/users/vitmalina","html_url":"https://github.com/vitmalina","followers_url":"https://api.github.com/users/vitmalina/followers","following_url":"https://api.github.com/users/vitmalina/following{/other_user}","gists_url":"https://api.github.com/users/vitmalina/gists{/gist_id}","starred_url":"https://api.github.com/users/vitmalina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitmalina/subscriptions","organizations_url":"https://api.github.com/users/vitmalina/orgs","repos_url":"https://api.github.com/users/vitmalina/repos","events_url":"https://api.github.com/users/vitmalina/events{/privacy}","received_events_url":"https://api.github.com/users/vitmalina/received_events","type":"User","site_admin":false},"repo":{"id":1604375,"name":"w2ui","full_name":"vitmalina/w2ui","owner":{"login":"vitmalina","id":561995,"avatar_url":"https://avatars.githubusercontent.com/u/561995?v=3","gravatar_id":"","url":"https://api.github.com/users/vitmalina","html_url":"https://github.com/vitmalina","followers_url":"https://api.github.com/users/vitmalina/followers","following_url":"https://api.github.com/users/vitmalina/following{/other_user}","gists_url":"https://api.github.com/users/vitmalina/gists{/gist_id}","starred_url":"https://api.github.com/users/vitmalina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitmalina/subscriptions","organizations_url":"https://api.github.com/users/vitmalina/orgs","repos_url":"https://api.github.com/users/vitmalina/repos","events_url":"https://api.github.com/users/vitmalina/events{/privacy}","received_events_url":"https://api.github.com/users/vitmalina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vitmalina/w2ui","description":"JavaScript UI library for data-driven web applications","fork":false,"url":"https://api.github.com/repos/vitmalina/w2ui","forks_url":"https://api.github.com/repos/vitmalina/w2ui/forks","keys_url":"https://api.github.com/repos/vitmalina/w2ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vitmalina/w2ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vitmalina/w2ui/teams","hooks_url":"https://api.github.com/repos/vitmalina/w2ui/hooks","issue_events_url":"https://api.github.com/repos/vitmalina/w2ui/issues/events{/number}","events_url":"https://api.github.com/repos/vitmalina/w2ui/events","assignees_url":"https://api.github.com/repos/vitmalina/w2ui/assignees{/user}","branches_url":"https://api.github.com/repos/vitmalina/w2ui/branches{/branch}","tags_url":"https://api.github.com/repos/vitmalina/w2ui/tags","blobs_url":"https://api.github.com/repos/vitmalina/w2ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vitmalina/w2ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vitmalina/w2ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/vitmalina/w2ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vitmalina/w2ui/statuses/{sha}","languages_url":"https://api.github.com/repos/vitmalina/w2ui/languages","stargazers_url":"https://api.github.com/repos/vitmalina/w2ui/stargazers","contributors_url":"https://api.github.com/repos/vitmalina/w2ui/contributors","subscribers_url":"https://api.github.com/repos/vitmalina/w2ui/subscribers","subscription_url":"https://api.github.com/repos/vitmalina/w2ui/subscription","commits_url":"https://api.github.com/repos/vitmalina/w2ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/vitmalina/w2ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/vitmalina/w2ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/vitmalina/w2ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/vitmalina/w2ui/contents/{+path}","compare_url":"https://api.github.com/repos/vitmalina/w2ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vitmalina/w2ui/merges","archive_url":"https://api.github.com/repos/vitmalina/w2ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vitmalina/w2ui/downloads","issues_url":"https://api.github.com/repos/vitmalina/w2ui/issues{/number}","pulls_url":"https://api.github.com/repos/vitmalina/w2ui/pulls{/number}","milestones_url":"https://api.github.com/repos/vitmalina/w2ui/milestones{/number}","notifications_url":"https://api.github.com/repos/vitmalina/w2ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vitmalina/w2ui/labels{/name}","releases_url":"https://api.github.com/repos/vitmalina/w2ui/releases{/id}","created_at":"2011-04-12T14:26:20Z","updated_at":"2015-08-18T11:11:52Z","pushed_at":"2015-08-19T07:11:45Z","git_url":"git://github.com/vitmalina/w2ui.git","ssh_url":"git@github.com:vitmalina/w2ui.git","clone_url":"https://github.com/vitmalina/w2ui.git","svn_url":"https://github.com/vitmalina/w2ui","homepage":"http://w2ui.com","size":25721,"stargazers_count":987,"watchers_count":987,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":322,"mirror_url":null,"open_issues_count":139,"forks":322,"open_issues":139,"watchers":987,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vitmalina/w2ui/pulls/1022"},"html":{"href":"https://github.com/vitmalina/w2ui/pull/1022"},"issue":{"href":"https://api.github.com/repos/vitmalina/w2ui/issues/1022"},"comments":{"href":"https://api.github.com/repos/vitmalina/w2ui/issues/1022/comments"},"review_comments":{"href":"https://api.github.com/repos/vitmalina/w2ui/pulls/1022/comments"},"review_comment":{"href":"https://api.github.com/repos/vitmalina/w2ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vitmalina/w2ui/pulls/1022/commits"},"statuses":{"href":"https://api.github.com/repos/vitmalina/w2ui/statuses/73c2657ea0d854076660f0869271e0e2edb2d416"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":3,"changed_files":1}}