{"action":"created","issue":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/110","labels_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/110/comments","events_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/110/events","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/110","id":70965640,"number":110,"title":"trigger afterAddRule after createRuleFilters","user":{"login":"mszoernyi","id":668269,"avatar_url":"https://avatars.githubusercontent.com/u/668269?v=3","gravatar_id":"","url":"https://api.github.com/users/mszoernyi","html_url":"https://github.com/mszoernyi","followers_url":"https://api.github.com/users/mszoernyi/followers","following_url":"https://api.github.com/users/mszoernyi/following{/other_user}","gists_url":"https://api.github.com/users/mszoernyi/gists{/gist_id}","starred_url":"https://api.github.com/users/mszoernyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mszoernyi/subscriptions","organizations_url":"https://api.github.com/users/mszoernyi/orgs","repos_url":"https://api.github.com/users/mszoernyi/repos","events_url":"https://api.github.com/users/mszoernyi/events{/privacy}","received_events_url":"https://api.github.com/users/mszoernyi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/milestones/7","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/milestones/2.1","labels_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/milestones/7/labels","id":1087282,"number":7,"title":"2.1","description":null,"creator":{"login":"mistic100","id":41597,"avatar_url":"https://avatars.githubusercontent.com/u/41597?v=3","gravatar_id":"","url":"https://api.github.com/users/mistic100","html_url":"https://github.com/mistic100","followers_url":"https://api.github.com/users/mistic100/followers","following_url":"https://api.github.com/users/mistic100/following{/other_user}","gists_url":"https://api.github.com/users/mistic100/gists{/gist_id}","starred_url":"https://api.github.com/users/mistic100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistic100/subscriptions","organizations_url":"https://api.github.com/users/mistic100/orgs","repos_url":"https://api.github.com/users/mistic100/repos","events_url":"https://api.github.com/users/mistic100/events{/privacy}","received_events_url":"https://api.github.com/users/mistic100/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-04-28T11:48:28Z","updated_at":"2015-04-28T11:49:20Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-04-25T20:49:38Z","updated_at":"2015-04-28T12:32:27Z","closed_at":"2015-04-27T17:36:55Z","body":"I'm writing an ember.js wrapper for the builder which depends on the triggers called to keep it in sync with ember.\r\n\r\nWhen I'm passing a rule with a `data` key to `setRules` the [afterAddRule trigger](https://github.com/mistic100/jQuery-QueryBuilder/blob/a15746a35afe1136a18657cdb40b5fe577b1bcbc/src/core.js#L359) get an empty model passed which is then filled [one step later](https://github.com/mistic100/jQuery-QueryBuilder/blob/a15746a35afe1136a18657cdb40b5fe577b1bcbc/src/core.js#L361).\r\n\r\nI'm not sure if I'm using the events wrongly but I would expect to get a proper rule passed not just one with an `id`."},"comment":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/comments/97046616","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/110#issuecomment-97046616","issue_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/110","id":97046616,"user":{"login":"mszoernyi","id":668269,"avatar_url":"https://avatars.githubusercontent.com/u/668269?v=3","gravatar_id":"","url":"https://api.github.com/users/mszoernyi","html_url":"https://github.com/mszoernyi","followers_url":"https://api.github.com/users/mszoernyi/followers","following_url":"https://api.github.com/users/mszoernyi/following{/other_user}","gists_url":"https://api.github.com/users/mszoernyi/gists{/gist_id}","starred_url":"https://api.github.com/users/mszoernyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mszoernyi/subscriptions","organizations_url":"https://api.github.com/users/mszoernyi/orgs","repos_url":"https://api.github.com/users/mszoernyi/repos","events_url":"https://api.github.com/users/mszoernyi/events{/privacy}","received_events_url":"https://api.github.com/users/mszoernyi/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T12:32:26Z","updated_at":"2015-04-28T12:32:26Z","body":"Thanks. Works really good this way."}}