{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/2","id":54801066,"html_url":"https://github.com/pmckinney8/Bouncer/pull/2","diff_url":"https://github.com/pmckinney8/Bouncer/pull/2.diff","patch_url":"https://github.com/pmckinney8/Bouncer/pull/2.patch","issue_url":"https://api.github.com/repos/pmckinney8/Bouncer/issues/2","number":2,"state":"open","locked":false,"title":"Made the Bounce function global, and made all the helper methods into…","user":{"login":"oscarvazquez","id":11913529,"avatar_url":"https://avatars.githubusercontent.com/u/11913529?v=3","gravatar_id":"","url":"https://api.github.com/users/oscarvazquez","html_url":"https://github.com/oscarvazquez","followers_url":"https://api.github.com/users/oscarvazquez/followers","following_url":"https://api.github.com/users/oscarvazquez/following{/other_user}","gists_url":"https://api.github.com/users/oscarvazquez/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarvazquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarvazquez/subscriptions","organizations_url":"https://api.github.com/users/oscarvazquez/orgs","repos_url":"https://api.github.com/users/oscarvazquez/repos","events_url":"https://api.github.com/users/oscarvazquez/events{/privacy}","received_events_url":"https://api.github.com/users/oscarvazquez/received_events","type":"User","site_admin":false},"body":"Made the Bounce function global, and made all the helper methods into local variables. Added credit card and no numbers validation. The way that it was setup before some of the helper methods we're messing with my other js functions. I also put all the code into a big immediately invoked function and made the Bounce class global. Now you can just call that function from anywhere within your projects. Also took the validation array and made it into a parameter of the function call. That way users wouldn't have to go into the source code to add there validation array. Instead of using input as the selector for jquery I changed that to a bouncer class. So if someone want's to use it they would bouncer as the class of the input. I made the actual validate function into a prototype function of the class, so to actually invoke the function it would be, Bounce.validate(validation_array). Let me know what you think and if you think I should get rid of some stuff","created_at":"2015-12-30T13:50:49Z","updated_at":"2015-12-30T13:50:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/2/commits","review_comments_url":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/2/comments","review_comment_url":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pmckinney8/Bouncer/issues/2/comments","statuses_url":"https://api.github.com/repos/pmckinney8/Bouncer/statuses/f25ca304888ea475e445595b3f815aec5163756a","head":{"label":"oscarvazquez:master","ref":"master","sha":"f25ca304888ea475e445595b3f815aec5163756a","user":{"login":"oscarvazquez","id":11913529,"avatar_url":"https://avatars.githubusercontent.com/u/11913529?v=3","gravatar_id":"","url":"https://api.github.com/users/oscarvazquez","html_url":"https://github.com/oscarvazquez","followers_url":"https://api.github.com/users/oscarvazquez/followers","following_url":"https://api.github.com/users/oscarvazquez/following{/other_user}","gists_url":"https://api.github.com/users/oscarvazquez/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarvazquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarvazquez/subscriptions","organizations_url":"https://api.github.com/users/oscarvazquez/orgs","repos_url":"https://api.github.com/users/oscarvazquez/repos","events_url":"https://api.github.com/users/oscarvazquez/events{/privacy}","received_events_url":"https://api.github.com/users/oscarvazquez/received_events","type":"User","site_admin":false},"repo":{"id":48802153,"name":"Bouncer","full_name":"oscarvazquez/Bouncer","owner":{"login":"oscarvazquez","id":11913529,"avatar_url":"https://avatars.githubusercontent.com/u/11913529?v=3","gravatar_id":"","url":"https://api.github.com/users/oscarvazquez","html_url":"https://github.com/oscarvazquez","followers_url":"https://api.github.com/users/oscarvazquez/followers","following_url":"https://api.github.com/users/oscarvazquez/following{/other_user}","gists_url":"https://api.github.com/users/oscarvazquez/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarvazquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarvazquez/subscriptions","organizations_url":"https://api.github.com/users/oscarvazquez/orgs","repos_url":"https://api.github.com/users/oscarvazquez/repos","events_url":"https://api.github.com/users/oscarvazquez/events{/privacy}","received_events_url":"https://api.github.com/users/oscarvazquez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oscarvazquez/Bouncer","description":"Plug in that makes front end validation easier ","fork":true,"url":"https://api.github.com/repos/oscarvazquez/Bouncer","forks_url":"https://api.github.com/repos/oscarvazquez/Bouncer/forks","keys_url":"https://api.github.com/repos/oscarvazquez/Bouncer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oscarvazquez/Bouncer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oscarvazquez/Bouncer/teams","hooks_url":"https://api.github.com/repos/oscarvazquez/Bouncer/hooks","issue_events_url":"https://api.github.com/repos/oscarvazquez/Bouncer/issues/events{/number}","events_url":"https://api.github.com/repos/oscarvazquez/Bouncer/events","assignees_url":"https://api.github.com/repos/oscarvazquez/Bouncer/assignees{/user}","branches_url":"https://api.github.com/repos/oscarvazquez/Bouncer/branches{/branch}","tags_url":"https://api.github.com/repos/oscarvazquez/Bouncer/tags","blobs_url":"https://api.github.com/repos/oscarvazquez/Bouncer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oscarvazquez/Bouncer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oscarvazquez/Bouncer/git/refs{/sha}","trees_url":"https://api.github.com/repos/oscarvazquez/Bouncer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oscarvazquez/Bouncer/statuses/{sha}","languages_url":"https://api.github.com/repos/oscarvazquez/Bouncer/languages","stargazers_url":"https://api.github.com/repos/oscarvazquez/Bouncer/stargazers","contributors_url":"https://api.github.com/repos/oscarvazquez/Bouncer/contributors","subscribers_url":"https://api.github.com/repos/oscarvazquez/Bouncer/subscribers","subscription_url":"https://api.github.com/repos/oscarvazquez/Bouncer/subscription","commits_url":"https://api.github.com/repos/oscarvazquez/Bouncer/commits{/sha}","git_commits_url":"https://api.github.com/repos/oscarvazquez/Bouncer/git/commits{/sha}","comments_url":"https://api.github.com/repos/oscarvazquez/Bouncer/comments{/number}","issue_comment_url":"https://api.github.com/repos/oscarvazquez/Bouncer/issues/comments{/number}","contents_url":"https://api.github.com/repos/oscarvazquez/Bouncer/contents/{+path}","compare_url":"https://api.github.com/repos/oscarvazquez/Bouncer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oscarvazquez/Bouncer/merges","archive_url":"https://api.github.com/repos/oscarvazquez/Bouncer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oscarvazquez/Bouncer/downloads","issues_url":"https://api.github.com/repos/oscarvazquez/Bouncer/issues{/number}","pulls_url":"https://api.github.com/repos/oscarvazquez/Bouncer/pulls{/number}","milestones_url":"https://api.github.com/repos/oscarvazquez/Bouncer/milestones{/number}","notifications_url":"https://api.github.com/repos/oscarvazquez/Bouncer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oscarvazquez/Bouncer/labels{/name}","releases_url":"https://api.github.com/repos/oscarvazquez/Bouncer/releases{/id}","created_at":"2015-12-30T13:36:04Z","updated_at":"2015-12-30T13:36:05Z","pushed_at":"2015-12-30T13:43:18Z","git_url":"git://github.com/oscarvazquez/Bouncer.git","ssh_url":"git@github.com:oscarvazquez/Bouncer.git","clone_url":"https://github.com/oscarvazquez/Bouncer.git","svn_url":"https://github.com/oscarvazquez/Bouncer","homepage":null,"size":14,"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":"pmckinney8:master","ref":"master","sha":"2217e170822ca0ab73915481ed8952177d8d9dbf","user":{"login":"pmckinney8","id":10406750,"avatar_url":"https://avatars.githubusercontent.com/u/10406750?v=3","gravatar_id":"","url":"https://api.github.com/users/pmckinney8","html_url":"https://github.com/pmckinney8","followers_url":"https://api.github.com/users/pmckinney8/followers","following_url":"https://api.github.com/users/pmckinney8/following{/other_user}","gists_url":"https://api.github.com/users/pmckinney8/gists{/gist_id}","starred_url":"https://api.github.com/users/pmckinney8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmckinney8/subscriptions","organizations_url":"https://api.github.com/users/pmckinney8/orgs","repos_url":"https://api.github.com/users/pmckinney8/repos","events_url":"https://api.github.com/users/pmckinney8/events{/privacy}","received_events_url":"https://api.github.com/users/pmckinney8/received_events","type":"User","site_admin":false},"repo":{"id":45019728,"name":"Bouncer","full_name":"pmckinney8/Bouncer","owner":{"login":"pmckinney8","id":10406750,"avatar_url":"https://avatars.githubusercontent.com/u/10406750?v=3","gravatar_id":"","url":"https://api.github.com/users/pmckinney8","html_url":"https://github.com/pmckinney8","followers_url":"https://api.github.com/users/pmckinney8/followers","following_url":"https://api.github.com/users/pmckinney8/following{/other_user}","gists_url":"https://api.github.com/users/pmckinney8/gists{/gist_id}","starred_url":"https://api.github.com/users/pmckinney8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmckinney8/subscriptions","organizations_url":"https://api.github.com/users/pmckinney8/orgs","repos_url":"https://api.github.com/users/pmckinney8/repos","events_url":"https://api.github.com/users/pmckinney8/events{/privacy}","received_events_url":"https://api.github.com/users/pmckinney8/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pmckinney8/Bouncer","description":"Plug in that makes front end validation easier ","fork":false,"url":"https://api.github.com/repos/pmckinney8/Bouncer","forks_url":"https://api.github.com/repos/pmckinney8/Bouncer/forks","keys_url":"https://api.github.com/repos/pmckinney8/Bouncer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pmckinney8/Bouncer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pmckinney8/Bouncer/teams","hooks_url":"https://api.github.com/repos/pmckinney8/Bouncer/hooks","issue_events_url":"https://api.github.com/repos/pmckinney8/Bouncer/issues/events{/number}","events_url":"https://api.github.com/repos/pmckinney8/Bouncer/events","assignees_url":"https://api.github.com/repos/pmckinney8/Bouncer/assignees{/user}","branches_url":"https://api.github.com/repos/pmckinney8/Bouncer/branches{/branch}","tags_url":"https://api.github.com/repos/pmckinney8/Bouncer/tags","blobs_url":"https://api.github.com/repos/pmckinney8/Bouncer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pmckinney8/Bouncer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pmckinney8/Bouncer/git/refs{/sha}","trees_url":"https://api.github.com/repos/pmckinney8/Bouncer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pmckinney8/Bouncer/statuses/{sha}","languages_url":"https://api.github.com/repos/pmckinney8/Bouncer/languages","stargazers_url":"https://api.github.com/repos/pmckinney8/Bouncer/stargazers","contributors_url":"https://api.github.com/repos/pmckinney8/Bouncer/contributors","subscribers_url":"https://api.github.com/repos/pmckinney8/Bouncer/subscribers","subscription_url":"https://api.github.com/repos/pmckinney8/Bouncer/subscription","commits_url":"https://api.github.com/repos/pmckinney8/Bouncer/commits{/sha}","git_commits_url":"https://api.github.com/repos/pmckinney8/Bouncer/git/commits{/sha}","comments_url":"https://api.github.com/repos/pmckinney8/Bouncer/comments{/number}","issue_comment_url":"https://api.github.com/repos/pmckinney8/Bouncer/issues/comments{/number}","contents_url":"https://api.github.com/repos/pmckinney8/Bouncer/contents/{+path}","compare_url":"https://api.github.com/repos/pmckinney8/Bouncer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pmckinney8/Bouncer/merges","archive_url":"https://api.github.com/repos/pmckinney8/Bouncer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pmckinney8/Bouncer/downloads","issues_url":"https://api.github.com/repos/pmckinney8/Bouncer/issues{/number}","pulls_url":"https://api.github.com/repos/pmckinney8/Bouncer/pulls{/number}","milestones_url":"https://api.github.com/repos/pmckinney8/Bouncer/milestones{/number}","notifications_url":"https://api.github.com/repos/pmckinney8/Bouncer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pmckinney8/Bouncer/labels{/name}","releases_url":"https://api.github.com/repos/pmckinney8/Bouncer/releases{/id}","created_at":"2015-10-27T05:47:04Z","updated_at":"2015-11-28T04:28:01Z","pushed_at":"2015-12-19T04:21:43Z","git_url":"git://github.com/pmckinney8/Bouncer.git","ssh_url":"git@github.com:pmckinney8/Bouncer.git","clone_url":"https://github.com/pmckinney8/Bouncer.git","svn_url":"https://github.com/pmckinney8/Bouncer","homepage":null,"size":12,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/2"},"html":{"href":"https://github.com/pmckinney8/Bouncer/pull/2"},"issue":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/issues/2"},"comments":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/pmckinney8/Bouncer/statuses/f25ca304888ea475e445595b3f815aec5163756a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":230,"deletions":134,"changed_files":1}}