{"action":"created","issue":{"url":"https://api.github.com/repos/LeaVerou/bliss/issues/47","labels_url":"https://api.github.com/repos/LeaVerou/bliss/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/LeaVerou/bliss/issues/47/comments","events_url":"https://api.github.com/repos/LeaVerou/bliss/issues/47/events","html_url":"https://github.com/LeaVerou/bliss/issues/47","id":120910299,"number":47,"title":"Need Help for testing","user":{"login":"wcastand","id":2178244,"avatar_url":"https://avatars.githubusercontent.com/u/2178244?v=3","gravatar_id":"","url":"https://api.github.com/users/wcastand","html_url":"https://github.com/wcastand","followers_url":"https://api.github.com/users/wcastand/followers","following_url":"https://api.github.com/users/wcastand/following{/other_user}","gists_url":"https://api.github.com/users/wcastand/gists{/gist_id}","starred_url":"https://api.github.com/users/wcastand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcastand/subscriptions","organizations_url":"https://api.github.com/users/wcastand/orgs","repos_url":"https://api.github.com/users/wcastand/repos","events_url":"https://api.github.com/users/wcastand/events{/privacy}","received_events_url":"https://api.github.com/users/wcastand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LeaVerou/bliss/labels/tests","name":"tests","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-12-08T01:36:19Z","updated_at":"2015-12-08T22:33:13Z","closed_at":"2015-12-08T19:23:10Z","body":"Hi, i wanted to contribute so i decide to test the [Events](http://blissfuljs.com/docs.html#events).\r\nBut i can't figure it out what i'm doing wrong here :\r\n```javascript\r\ndescribe(\"$.delegate\", function() {\r\n\tit(\"exists\", function() {\r\n\t\texpect($.delegate).to.exist;\r\n\t});\r\n\tit(\"add event on children of subject\", function() {\r\n\t\tvar test = false;\r\n\t\tvar subject = document.createElement(\"ul\");\r\n\t\tsubject.id = \"tete\";\r\n\t\tvar inside = document.createElement(\"li\");\r\n\t\tsubject.appendChild(inside);\r\n\r\n\t\tdocument.body.appendChild(subject);\r\n\t\t$.delegate(subject, \"click\", {\r\n\t\t\tli: function(){\r\n\t\t\t\tconsole.log(\"te\");\r\n\t\t\t\ttest = true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t$('#tete li').click();\r\n\t\texpect(test).to.be.equal(true);\r\n\t});\r\n});\r\n```\r\nMy file called \"DelegateSpec.js\" in the folder \"tests/Events/\" and i get this error by karma:\r\n```\r\nTypeError: 'undefined' is not a function (evaluating '$('#tete li').click()')\r\n            at F:/Web/bliss/tests/Events/DelegateSpec.js:19\r\n```\r\nI'm quite new at testing (and already hate that :-P), so be nice with me please :-)"},"comment":{"url":"https://api.github.com/repos/LeaVerou/bliss/issues/comments/163040922","html_url":"https://github.com/LeaVerou/bliss/issues/47#issuecomment-163040922","issue_url":"https://api.github.com/repos/LeaVerou/bliss/issues/47","id":163040922,"user":{"login":"zdfs","id":619628,"avatar_url":"https://avatars.githubusercontent.com/u/619628?v=3","gravatar_id":"","url":"https://api.github.com/users/zdfs","html_url":"https://github.com/zdfs","followers_url":"https://api.github.com/users/zdfs/followers","following_url":"https://api.github.com/users/zdfs/following{/other_user}","gists_url":"https://api.github.com/users/zdfs/gists{/gist_id}","starred_url":"https://api.github.com/users/zdfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdfs/subscriptions","organizations_url":"https://api.github.com/users/zdfs/orgs","repos_url":"https://api.github.com/users/zdfs/repos","events_url":"https://api.github.com/users/zdfs/events{/privacy}","received_events_url":"https://api.github.com/users/zdfs/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T22:33:13Z","updated_at":"2015-12-08T22:33:13Z","body":"You can do that. I can merge something like that as opposed to changes that affect core code."}}