{"action":"created","comment":{"url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/comments/91481217","pull_request_review_id":11988767,"id":91481217,"diff_hunk":"@@ -77,15 +63,29 @@ channel.onCordovaReady.subscribe(function() {\n         if (channel.onCordovaConnectionReady.state !== 2) {\n             channel.onCordovaConnectionReady.fire();\n         }\n-    },\n-    function (e) {\n+    }\n+\n+    function errorCallback(e) {\n         // If we can't get the network info we should still tell Cordova\n         // to fire the deviceready event.\n         if (channel.onCordovaConnectionReady.state !== 2) {\n             channel.onCordovaConnectionReady.fire();\n         }\n         console.log(\"Error initializing Network Connection: \" + e);\n-    });\n+    }\n+\n+    exec(successCallback, errorCallback, \"NetworkStatus\", \"getConnectionInfo\", []);\n+};\n+\n+var me = new NetworkConnection();\n+var timerId = null;\n+var timeout = 500;\n+\n+channel.createSticky('onCordovaConnectionReady');\n+channel.waitForInitialization('onCordovaConnectionReady');\n+\n+channel.onCordovaReady.subscribe(function() {\n+    me.getInfo();","path":"www/network.js","position":66,"original_position":66,"commit_id":"f14dcbaa2eef905d14e9e8c9f24f5b0d337b4dc0","original_commit_id":"f14dcbaa2eef905d14e9e8c9f24f5b0d337b4dc0","user":{"login":"astanecki","id":11527875,"avatar_url":"https://avatars.githubusercontent.com/u/11527875?v=3","gravatar_id":"","url":"https://api.github.com/users/astanecki","html_url":"https://github.com/astanecki","followers_url":"https://api.github.com/users/astanecki/followers","following_url":"https://api.github.com/users/astanecki/following{/other_user}","gists_url":"https://api.github.com/users/astanecki/gists{/gist_id}","starred_url":"https://api.github.com/users/astanecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astanecki/subscriptions","organizations_url":"https://api.github.com/users/astanecki/orgs","repos_url":"https://api.github.com/users/astanecki/repos","events_url":"https://api.github.com/users/astanecki/events{/privacy}","received_events_url":"https://api.github.com/users/astanecki/received_events","type":"User","site_admin":false},"body":"tu właściwie anonimowa metoda nie jest potrzebna","created_at":"2016-12-08T10:00:10Z","updated_at":"2016-12-08T10:00:37Z","html_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pull/1#discussion_r91481217","pull_request_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/comments/91481217"},"html":{"href":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pull/1#discussion_r91481217"},"pull_request":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1","id":96690464,"html_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pull/1","diff_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pull/1.diff","patch_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pull/1.patch","issue_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/1","number":1,"state":"open","locked":false,"title":"Bugfix/wifi","user":{"login":"gczudowski","id":10581196,"avatar_url":"https://avatars.githubusercontent.com/u/10581196?v=3","gravatar_id":"","url":"https://api.github.com/users/gczudowski","html_url":"https://github.com/gczudowski","followers_url":"https://api.github.com/users/gczudowski/followers","following_url":"https://api.github.com/users/gczudowski/following{/other_user}","gists_url":"https://api.github.com/users/gczudowski/gists{/gist_id}","starred_url":"https://api.github.com/users/gczudowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gczudowski/subscriptions","organizations_url":"https://api.github.com/users/gczudowski/orgs","repos_url":"https://api.github.com/users/gczudowski/repos","events_url":"https://api.github.com/users/gczudowski/events{/privacy}","received_events_url":"https://api.github.com/users/gczudowski/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-06T09:44:27Z","updated_at":"2016-12-08T10:00:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2224a3689dcf9cb3b4b4e6d607afeedfef9414f7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/1/comments","statuses_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/statuses/f14dcbaa2eef905d14e9e8c9f24f5b0d337b4dc0","head":{"label":"SymetriaSpJ:bugfix/wifi","ref":"bugfix/wifi","sha":"f14dcbaa2eef905d14e9e8c9f24f5b0d337b4dc0","user":{"login":"SymetriaSpJ","id":10740560,"avatar_url":"https://avatars.githubusercontent.com/u/10740560?v=3","gravatar_id":"","url":"https://api.github.com/users/SymetriaSpJ","html_url":"https://github.com/SymetriaSpJ","followers_url":"https://api.github.com/users/SymetriaSpJ/followers","following_url":"https://api.github.com/users/SymetriaSpJ/following{/other_user}","gists_url":"https://api.github.com/users/SymetriaSpJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SymetriaSpJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymetriaSpJ/subscriptions","organizations_url":"https://api.github.com/users/SymetriaSpJ/orgs","repos_url":"https://api.github.com/users/SymetriaSpJ/repos","events_url":"https://api.github.com/users/SymetriaSpJ/events{/privacy}","received_events_url":"https://api.github.com/users/SymetriaSpJ/received_events","type":"Organization","site_admin":false},"repo":{"id":56060808,"name":"phonegap-plugin-cordova-plugin-network-information","full_name":"SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","owner":{"login":"SymetriaSpJ","id":10740560,"avatar_url":"https://avatars.githubusercontent.com/u/10740560?v=3","gravatar_id":"","url":"https://api.github.com/users/SymetriaSpJ","html_url":"https://github.com/SymetriaSpJ","followers_url":"https://api.github.com/users/SymetriaSpJ/followers","following_url":"https://api.github.com/users/SymetriaSpJ/following{/other_user}","gists_url":"https://api.github.com/users/SymetriaSpJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SymetriaSpJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymetriaSpJ/subscriptions","organizations_url":"https://api.github.com/users/SymetriaSpJ/orgs","repos_url":"https://api.github.com/users/SymetriaSpJ/repos","events_url":"https://api.github.com/users/SymetriaSpJ/events{/privacy}","received_events_url":"https://api.github.com/users/SymetriaSpJ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","description":"Mirror of Apache Cordova Plugin network-information","fork":true,"url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","forks_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/forks","keys_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/teams","hooks_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/hooks","issue_events_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/events{/number}","events_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/events","assignees_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/assignees{/user}","branches_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/branches{/branch}","tags_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/tags","blobs_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/refs{/sha}","trees_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/statuses/{sha}","languages_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/languages","stargazers_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/stargazers","contributors_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/contributors","subscribers_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/subscribers","subscription_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/subscription","commits_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/commits{/sha}","git_commits_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/commits{/sha}","comments_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/comments{/number}","issue_comment_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/comments{/number}","contents_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/contents/{+path}","compare_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/merges","archive_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/downloads","issues_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues{/number}","pulls_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls{/number}","milestones_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/milestones{/number}","notifications_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/labels{/name}","releases_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/releases{/id}","deployments_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/deployments","created_at":"2016-04-12T12:23:50Z","updated_at":"2016-12-06T09:41:20Z","pushed_at":"2016-12-06T09:44:27Z","git_url":"git://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information.git","ssh_url":"git@github.com:SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information.git","clone_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information.git","svn_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","homepage":null,"size":276,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SymetriaSpJ:master","ref":"master","sha":"c911ef883c4564b5f04eff04eb6a257eab8b4323","user":{"login":"SymetriaSpJ","id":10740560,"avatar_url":"https://avatars.githubusercontent.com/u/10740560?v=3","gravatar_id":"","url":"https://api.github.com/users/SymetriaSpJ","html_url":"https://github.com/SymetriaSpJ","followers_url":"https://api.github.com/users/SymetriaSpJ/followers","following_url":"https://api.github.com/users/SymetriaSpJ/following{/other_user}","gists_url":"https://api.github.com/users/SymetriaSpJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SymetriaSpJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymetriaSpJ/subscriptions","organizations_url":"https://api.github.com/users/SymetriaSpJ/orgs","repos_url":"https://api.github.com/users/SymetriaSpJ/repos","events_url":"https://api.github.com/users/SymetriaSpJ/events{/privacy}","received_events_url":"https://api.github.com/users/SymetriaSpJ/received_events","type":"Organization","site_admin":false},"repo":{"id":56060808,"name":"phonegap-plugin-cordova-plugin-network-information","full_name":"SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","owner":{"login":"SymetriaSpJ","id":10740560,"avatar_url":"https://avatars.githubusercontent.com/u/10740560?v=3","gravatar_id":"","url":"https://api.github.com/users/SymetriaSpJ","html_url":"https://github.com/SymetriaSpJ","followers_url":"https://api.github.com/users/SymetriaSpJ/followers","following_url":"https://api.github.com/users/SymetriaSpJ/following{/other_user}","gists_url":"https://api.github.com/users/SymetriaSpJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SymetriaSpJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SymetriaSpJ/subscriptions","organizations_url":"https://api.github.com/users/SymetriaSpJ/orgs","repos_url":"https://api.github.com/users/SymetriaSpJ/repos","events_url":"https://api.github.com/users/SymetriaSpJ/events{/privacy}","received_events_url":"https://api.github.com/users/SymetriaSpJ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","description":"Mirror of Apache Cordova Plugin network-information","fork":true,"url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","forks_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/forks","keys_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/teams","hooks_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/hooks","issue_events_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/events{/number}","events_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/events","assignees_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/assignees{/user}","branches_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/branches{/branch}","tags_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/tags","blobs_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/refs{/sha}","trees_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/statuses/{sha}","languages_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/languages","stargazers_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/stargazers","contributors_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/contributors","subscribers_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/subscribers","subscription_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/subscription","commits_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/commits{/sha}","git_commits_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/git/commits{/sha}","comments_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/comments{/number}","issue_comment_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/comments{/number}","contents_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/contents/{+path}","compare_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/merges","archive_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/downloads","issues_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues{/number}","pulls_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls{/number}","milestones_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/milestones{/number}","notifications_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/labels{/name}","releases_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/releases{/id}","deployments_url":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/deployments","created_at":"2016-04-12T12:23:50Z","updated_at":"2016-12-06T09:41:20Z","pushed_at":"2016-12-06T09:44:27Z","git_url":"git://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information.git","ssh_url":"git@github.com:SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information.git","clone_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information.git","svn_url":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information","homepage":null,"size":276,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1"},"html":{"href":"https://github.com/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pull/1"},"issue":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/1"},"comments":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SymetriaSpJ/phonegap-plugin-cordova-plugin-network-information/statuses/f14dcbaa2eef905d14e9e8c9f24f5b0d337b4dc0"}}}}
{"actor":{"display_login":"astanecki"}}