{"action":"created","issue":{"url":"https://api.github.com/repos/jzaefferer/undo/issues/4","labels_url":"https://api.github.com/repos/jzaefferer/undo/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/undo/issues/4/comments","events_url":"https://api.github.com/repos/jzaefferer/undo/issues/4/events","html_url":"https://github.com/jzaefferer/undo/issues/4","id":55188838,"number":4,"title":"Integrate with NY-Times Ice","user":{"login":"circleb","id":6741954,"avatar_url":"https://avatars.githubusercontent.com/u/6741954?v=3","gravatar_id":"","url":"https://api.github.com/users/circleb","html_url":"https://github.com/circleb","followers_url":"https://api.github.com/users/circleb/followers","following_url":"https://api.github.com/users/circleb/following{/other_user}","gists_url":"https://api.github.com/users/circleb/gists{/gist_id}","starred_url":"https://api.github.com/users/circleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circleb/subscriptions","organizations_url":"https://api.github.com/users/circleb/orgs","repos_url":"https://api.github.com/users/circleb/repos","events_url":"https://api.github.com/users/circleb/events{/privacy}","received_events_url":"https://api.github.com/users/circleb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-22T18:15:57Z","updated_at":"2015-01-22T18:20:11Z","closed_at":"2015-01-22T18:20:11Z","body":"I'm trying to integrate this into Ice, what I'm wanting to do is add accept and reject changes to the stack.\r\nI need to be able to make a function for this because I'm not able to bind to a click. I'm getting an error that the variable stack is not found, how can I make it so that I can add to the stack from outside of the `$(function() {`?\r\n\r\nHere's the function that I want to implenent.\r\n\r\n```\r\nfunction acceptAll() {\r\n        tracker.acceptAll();\r\n        var newValue = $(\"#textbody\").html(); \r\n        stack.execute(new EditCommand(text, startValue, newValue));\r\n        startValue = newValue;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jzaefferer/undo/issues/comments/71069948","html_url":"https://github.com/jzaefferer/undo/issues/4#issuecomment-71069948","issue_url":"https://api.github.com/repos/jzaefferer/undo/issues/4","id":71069948,"user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T18:20:11Z","updated_at":"2015-01-22T18:20:11Z","body":"I think you'll have more success getting help on StackOverflow. Either way, without a reduced testpage or at least some link to some code, its almost impossible to debug this."}}