{"action":"opened","number":822,"pull_request":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/822","id":27253249,"html_url":"https://github.com/guillaumepotier/Parsley.js/pull/822","diff_url":"https://github.com/guillaumepotier/Parsley.js/pull/822.diff","patch_url":"https://github.com/guillaumepotier/Parsley.js/pull/822.patch","issue_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/822","number":822,"state":"open","locked":false,"title":"Proto options","user":{"login":"marcandre","id":33770,"avatar_url":"https://avatars.githubusercontent.com/u/33770?v=3","gravatar_id":"","url":"https://api.github.com/users/marcandre","html_url":"https://github.com/marcandre","followers_url":"https://api.github.com/users/marcandre/followers","following_url":"https://api.github.com/users/marcandre/following{/other_user}","gists_url":"https://api.github.com/users/marcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandre/subscriptions","organizations_url":"https://api.github.com/users/marcandre/orgs","repos_url":"https://api.github.com/users/marcandre/repos","events_url":"https://api.github.com/users/marcandre/events{/privacy}","received_events_url":"https://api.github.com/users/marcandre/received_events","type":"User","site_admin":false},"body":"Here's a summary of the commits:\r\n\r\n#### Tweak existing tests\r\nImprove the tests while making them compatible with what's coming. *(4 commits)*\r\n\r\n#### Tweak existing code\r\nSmall changes to the code base but no change to any functionality or function interface *(4 commits)*\r\n\r\n#### Use prototype for global options\r\nGradually modify the interface to `ParsleyUtils` to `OptionFactory` so global options are handled using `ParsleyConfig` as prototype. *(5 commits)*\r\n\r\n#### Use protoype for field & form options\r\nCreates `_resetOptions` that is in charge of building the options with the right prototype chain. Note that only a single test changes, because we now give priority to explicit options over DOM options.  *(1 commit)*\r\n\r\n#### Cleanup\r\nThe only thing not handled as nicely as before is if the parent changes (only happens in one spot). Then we must rebuild the `options` (since the sequence of prototypes have changed). The last commit shows something that wasn't possible before. *(last 3 commits)*\r\n","created_at":"2015-01-13T07:51:22Z","updated_at":"2015-01-13T07:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/822/commits","review_comments_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/822/comments","review_comment_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/822/comments","statuses_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/statuses/009943d76ebd1abb84adf4e8370652aed5e68dd7","head":{"label":"marcandre:proto_options","ref":"proto_options","sha":"009943d76ebd1abb84adf4e8370652aed5e68dd7","user":{"login":"marcandre","id":33770,"avatar_url":"https://avatars.githubusercontent.com/u/33770?v=3","gravatar_id":"","url":"https://api.github.com/users/marcandre","html_url":"https://github.com/marcandre","followers_url":"https://api.github.com/users/marcandre/followers","following_url":"https://api.github.com/users/marcandre/following{/other_user}","gists_url":"https://api.github.com/users/marcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandre/subscriptions","organizations_url":"https://api.github.com/users/marcandre/orgs","repos_url":"https://api.github.com/users/marcandre/repos","events_url":"https://api.github.com/users/marcandre/events{/privacy}","received_events_url":"https://api.github.com/users/marcandre/received_events","type":"User","site_admin":false},"repo":{"id":19714558,"name":"Parsley.js","full_name":"marcandre/Parsley.js","owner":{"login":"marcandre","id":33770,"avatar_url":"https://avatars.githubusercontent.com/u/33770?v=3","gravatar_id":"","url":"https://api.github.com/users/marcandre","html_url":"https://github.com/marcandre","followers_url":"https://api.github.com/users/marcandre/followers","following_url":"https://api.github.com/users/marcandre/following{/other_user}","gists_url":"https://api.github.com/users/marcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandre/subscriptions","organizations_url":"https://api.github.com/users/marcandre/orgs","repos_url":"https://api.github.com/users/marcandre/repos","events_url":"https://api.github.com/users/marcandre/events{/privacy}","received_events_url":"https://api.github.com/users/marcandre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcandre/Parsley.js","description":"Validate your forms, frontend, without writing a single line of javascript!","fork":true,"url":"https://api.github.com/repos/marcandre/Parsley.js","forks_url":"https://api.github.com/repos/marcandre/Parsley.js/forks","keys_url":"https://api.github.com/repos/marcandre/Parsley.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcandre/Parsley.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcandre/Parsley.js/teams","hooks_url":"https://api.github.com/repos/marcandre/Parsley.js/hooks","issue_events_url":"https://api.github.com/repos/marcandre/Parsley.js/issues/events{/number}","events_url":"https://api.github.com/repos/marcandre/Parsley.js/events","assignees_url":"https://api.github.com/repos/marcandre/Parsley.js/assignees{/user}","branches_url":"https://api.github.com/repos/marcandre/Parsley.js/branches{/branch}","tags_url":"https://api.github.com/repos/marcandre/Parsley.js/tags","blobs_url":"https://api.github.com/repos/marcandre/Parsley.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcandre/Parsley.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcandre/Parsley.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcandre/Parsley.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcandre/Parsley.js/statuses/{sha}","languages_url":"https://api.github.com/repos/marcandre/Parsley.js/languages","stargazers_url":"https://api.github.com/repos/marcandre/Parsley.js/stargazers","contributors_url":"https://api.github.com/repos/marcandre/Parsley.js/contributors","subscribers_url":"https://api.github.com/repos/marcandre/Parsley.js/subscribers","subscription_url":"https://api.github.com/repos/marcandre/Parsley.js/subscription","commits_url":"https://api.github.com/repos/marcandre/Parsley.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcandre/Parsley.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcandre/Parsley.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcandre/Parsley.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/marcandre/Parsley.js/contents/{+path}","compare_url":"https://api.github.com/repos/marcandre/Parsley.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcandre/Parsley.js/merges","archive_url":"https://api.github.com/repos/marcandre/Parsley.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcandre/Parsley.js/downloads","issues_url":"https://api.github.com/repos/marcandre/Parsley.js/issues{/number}","pulls_url":"https://api.github.com/repos/marcandre/Parsley.js/pulls{/number}","milestones_url":"https://api.github.com/repos/marcandre/Parsley.js/milestones{/number}","notifications_url":"https://api.github.com/repos/marcandre/Parsley.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcandre/Parsley.js/labels{/name}","releases_url":"https://api.github.com/repos/marcandre/Parsley.js/releases{/id}","created_at":"2014-05-12T20:38:02Z","updated_at":"2014-05-14T17:54:54Z","pushed_at":"2015-01-13T07:51:06Z","git_url":"git://github.com/marcandre/Parsley.js.git","ssh_url":"git@github.com:marcandre/Parsley.js.git","clone_url":"https://github.com/marcandre/Parsley.js.git","svn_url":"https://github.com/marcandre/Parsley.js","homepage":"http://parsleyjs.org","size":4228,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"guillaumepotier:2.1","ref":"2.1","sha":"01fb73e7bf4559ee1d5d31f3ebb68bd71b8b4f5c","user":{"login":"guillaumepotier","id":496234,"avatar_url":"https://avatars.githubusercontent.com/u/496234?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaumepotier","html_url":"https://github.com/guillaumepotier","followers_url":"https://api.github.com/users/guillaumepotier/followers","following_url":"https://api.github.com/users/guillaumepotier/following{/other_user}","gists_url":"https://api.github.com/users/guillaumepotier/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumepotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumepotier/subscriptions","organizations_url":"https://api.github.com/users/guillaumepotier/orgs","repos_url":"https://api.github.com/users/guillaumepotier/repos","events_url":"https://api.github.com/users/guillaumepotier/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumepotier/received_events","type":"User","site_admin":false},"repo":{"id":7191565,"name":"Parsley.js","full_name":"guillaumepotier/Parsley.js","owner":{"login":"guillaumepotier","id":496234,"avatar_url":"https://avatars.githubusercontent.com/u/496234?v=3","gravatar_id":"","url":"https://api.github.com/users/guillaumepotier","html_url":"https://github.com/guillaumepotier","followers_url":"https://api.github.com/users/guillaumepotier/followers","following_url":"https://api.github.com/users/guillaumepotier/following{/other_user}","gists_url":"https://api.github.com/users/guillaumepotier/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumepotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumepotier/subscriptions","organizations_url":"https://api.github.com/users/guillaumepotier/orgs","repos_url":"https://api.github.com/users/guillaumepotier/repos","events_url":"https://api.github.com/users/guillaumepotier/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumepotier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guillaumepotier/Parsley.js","description":"Validate your forms, frontend, without writing a single line of javascript","fork":false,"url":"https://api.github.com/repos/guillaumepotier/Parsley.js","forks_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/forks","keys_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/teams","hooks_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/hooks","issue_events_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/events{/number}","events_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/events","assignees_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/assignees{/user}","branches_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/branches{/branch}","tags_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/tags","blobs_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/statuses/{sha}","languages_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/languages","stargazers_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/stargazers","contributors_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/contributors","subscribers_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/subscribers","subscription_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/subscription","commits_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/contents/{+path}","compare_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/merges","archive_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/downloads","issues_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues{/number}","pulls_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls{/number}","milestones_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/milestones{/number}","notifications_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/labels{/name}","releases_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/releases{/id}","created_at":"2012-12-16T14:52:04Z","updated_at":"2015-01-13T07:21:22Z","pushed_at":"2015-01-12T15:25:08Z","git_url":"git://github.com/guillaumepotier/Parsley.js.git","ssh_url":"git@github.com:guillaumepotier/Parsley.js.git","clone_url":"https://github.com/guillaumepotier/Parsley.js.git","svn_url":"https://github.com/guillaumepotier/Parsley.js","homepage":"http://parsleyjs.org","size":10276,"stargazers_count":5668,"watchers_count":5668,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":948,"mirror_url":null,"open_issues_count":85,"forks":948,"open_issues":85,"watchers":5668,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/822"},"html":{"href":"https://github.com/guillaumepotier/Parsley.js/pull/822"},"issue":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/822"},"comments":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/822/comments"},"review_comments":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/822/comments"},"review_comment":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/pulls/822/commits"},"statuses":{"href":"https://api.github.com/repos/guillaumepotier/Parsley.js/statuses/009943d76ebd1abb84adf4e8370652aed5e68dd7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":17,"additions":128,"deletions":202,"changed_files":17}}