{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/456","repository_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/456/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/456/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/456/events","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/456","id":182110280,"number":456,"title":"jquery.js:4996 Uncaught TypeError: Cannot create property 'guid' on string ","user":{"login":"julie1013","id":14143334,"avatar_url":"https://avatars.githubusercontent.com/u/14143334?v=3","gravatar_id":"","url":"https://api.github.com/users/julie1013","html_url":"https://github.com/julie1013","followers_url":"https://api.github.com/users/julie1013/followers","following_url":"https://api.github.com/users/julie1013/following{/other_user}","gists_url":"https://api.github.com/users/julie1013/gists{/gist_id}","starred_url":"https://api.github.com/users/julie1013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julie1013/subscriptions","organizations_url":"https://api.github.com/users/julie1013/orgs","repos_url":"https://api.github.com/users/julie1013/repos","events_url":"https://api.github.com/users/julie1013/events{/privacy}","received_events_url":"https://api.github.com/users/julie1013/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-10T20:42:35Z","updated_at":"2016-10-11T01:12:58Z","closed_at":"2016-10-10T20:48:10Z","body":"I get this error when adding the click handler for ```#removeNote```:\r\n\r\n```jquery.js:4996 Uncaught TypeError: Cannot create property 'guid' on string ```\r\n\r\nThis is the click handler:\r\n\r\n```$('#to-read-list-div ol').on('submit', 'li #removeNote', events.onRemoveNote);```\r\n\r\nThis is the loop that sets up this field:\r\n\r\n```js\r\nconst onShowMyToReadListSuccess = function (data){\r\n  $('#to-read-list').children(':not(\"h4\")').remove();\r\n  let qualifiedBookID;\r\n  for(let i = 0; i < data.length; i++){\r\n    if (data[i].notes === null){\r\n      data[i].notes = \"Your note here!\";\r\n      $('#removeNote').hide();\r\n      $('#addNote').show();\r\n    }\r\n    qualifiedBookID = data[i].id;\r\n    $('#to-read-list').append('<li data-id=' + qualifiedBookID + '>' +\r\n    '<span class=title>' + data[i].book.title +'</span>' + ' , by ' +\r\n    '<span class=author>' +  data[i].book.author + '</span>'+ '<p id=\"noteSpace\">Notes:</p>' +\r\n    data[i].notes +\r\n    '<form id=remove-from-my-to-read-list class=remove-from-my-to-read-list-button>' +\r\n    '<input type=submit value=\"Remove\" >' + '</form>' +\r\n    '<form id=\"addNote\" class=\"notes-field\">' + '<input type=submit value=\"Write a note?\">' +\r\n    '<input name=\"notes\"' + 'input type=\"text\"'+ 'value=\"\">' + '</form>' +\r\n    '<form id=\"removeNote\" class=\"notes-field\">' + '<input type=submit value=\"Remove Note\">' +\r\n    '</form>' + '</li>');\r\n    if (data[i].notes !== \"Your note here!\"){\r\n      $('#removeNote').show();\r\n      $('#addNote').hide();\r\n    }\r\n  }\r\n};\r\n```\r\n\r\nTried targeting the button (field; it's a submit event) in other ways, but none of them seem to work. But I'm guessing the problem is in the way I'm targeting the button."},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/comments/252786163","html_url":"https://github.com/ga-wdi-boston/full-stack-project/issues/456#issuecomment-252786163","issue_url":"https://api.github.com/repos/ga-wdi-boston/full-stack-project/issues/456","id":252786163,"user":{"login":"jrhorn424","id":388761,"avatar_url":"https://avatars.githubusercontent.com/u/388761?v=3","gravatar_id":"","url":"https://api.github.com/users/jrhorn424","html_url":"https://github.com/jrhorn424","followers_url":"https://api.github.com/users/jrhorn424/followers","following_url":"https://api.github.com/users/jrhorn424/following{/other_user}","gists_url":"https://api.github.com/users/jrhorn424/gists{/gist_id}","starred_url":"https://api.github.com/users/jrhorn424/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrhorn424/subscriptions","organizations_url":"https://api.github.com/users/jrhorn424/orgs","repos_url":"https://api.github.com/users/jrhorn424/repos","events_url":"https://api.github.com/users/jrhorn424/events{/privacy}","received_events_url":"https://api.github.com/users/jrhorn424/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T01:12:58Z","updated_at":"2016-10-11T01:12:58Z","body":"This is an incredibly complicated traversal. You should really be targeting forms directly for submit events."}}
{"actor":{"display_login":"jrhorn424"}}