{"action":"created","issue":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/969","labels_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/969/comments","events_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/969/events","html_url":"https://github.com/guillaumepotier/Parsley.js/issues/969","id":104148316,"number":969,"title":"Documentation code for custom validation has errors","user":{"login":"micahblu","id":441559,"avatar_url":"https://avatars.githubusercontent.com/u/441559?v=3","gravatar_id":"","url":"https://api.github.com/users/micahblu","html_url":"https://github.com/micahblu","followers_url":"https://api.github.com/users/micahblu/followers","following_url":"https://api.github.com/users/micahblu/following{/other_user}","gists_url":"https://api.github.com/users/micahblu/gists{/gist_id}","starred_url":"https://api.github.com/users/micahblu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahblu/subscriptions","organizations_url":"https://api.github.com/users/micahblu/orgs","repos_url":"https://api.github.com/users/micahblu/repos","events_url":"https://api.github.com/users/micahblu/events{/privacy}","received_events_url":"https://api.github.com/users/micahblu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-31T22:44:00Z","updated_at":"2015-09-01T17:54:56Z","closed_at":"2015-09-01T01:51:49Z","body":"The current code snippet @ http://parsleyjs.org/doc/index.html#psly-custom-intro calls on window.Parsley instead of window.ParsleyValidator, also there is a missing '}' before the closing ')'; Below is a corrected version of the snippet\r\n```js\r\nwindow.ParsleyValidator // was window.Parsley\r\n  .addValidator('multipleof', {\r\n    requirementType: 'integer',\r\n    validateNumber: function(value, requirement) {\r\n      return 0 === value % requirement;\r\n    },\r\n    messages: {\r\n      en: 'This value should be a multiple of %s',\r\n      fr: 'Cette valeur doit être un multiple de %s'\r\n    }\r\n  }); // was missing '}'\r\n```"},"comment":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/comments/136811751","html_url":"https://github.com/guillaumepotier/Parsley.js/issues/969#issuecomment-136811751","issue_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/969","id":136811751,"user":{"login":"micahblu","id":441559,"avatar_url":"https://avatars.githubusercontent.com/u/441559?v=3","gravatar_id":"","url":"https://api.github.com/users/micahblu","html_url":"https://github.com/micahblu","followers_url":"https://api.github.com/users/micahblu/followers","following_url":"https://api.github.com/users/micahblu/following{/other_user}","gists_url":"https://api.github.com/users/micahblu/gists{/gist_id}","starred_url":"https://api.github.com/users/micahblu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahblu/subscriptions","organizations_url":"https://api.github.com/users/micahblu/orgs","repos_url":"https://api.github.com/users/micahblu/repos","events_url":"https://api.github.com/users/micahblu/events{/privacy}","received_events_url":"https://api.github.com/users/micahblu/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T17:54:56Z","updated_at":"2015-09-01T17:54:56Z","body":"Thanks that appears to work"}}