{"action":"created","issue":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/540","repository_url":"https://api.github.com/repos/MrRio/jsPDF","labels_url":"https://api.github.com/repos/MrRio/jsPDF/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/MrRio/jsPDF/issues/540/comments","events_url":"https://api.github.com/repos/MrRio/jsPDF/issues/540/events","html_url":"https://github.com/MrRio/jsPDF/issues/540","id":92656028,"number":540,"title":"Promise or callback after calling `.save(filename)` or `.output('save', filename)`","user":{"login":"JimmyBoh","id":2332163,"avatar_url":"https://avatars3.githubusercontent.com/u/2332163?v=3","gravatar_id":"","url":"https://api.github.com/users/JimmyBoh","html_url":"https://github.com/JimmyBoh","followers_url":"https://api.github.com/users/JimmyBoh/followers","following_url":"https://api.github.com/users/JimmyBoh/following{/other_user}","gists_url":"https://api.github.com/users/JimmyBoh/gists{/gist_id}","starred_url":"https://api.github.com/users/JimmyBoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimmyBoh/subscriptions","organizations_url":"https://api.github.com/users/JimmyBoh/orgs","repos_url":"https://api.github.com/users/JimmyBoh/repos","events_url":"https://api.github.com/users/JimmyBoh/events{/privacy}","received_events_url":"https://api.github.com/users/JimmyBoh/received_events","type":"User","site_admin":false},"labels":[{"id":79787882,"url":"https://api.github.com/repos/MrRio/jsPDF/labels/Improvement","name":"Improvement","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-07-02T14:47:30Z","updated_at":"2017-04-10T02:49:20Z","closed_at":null,"body":"Is there a way to fire a callback after the save action is complete? I'd like to only close a modal window after the file is \"downloaded\" so I need some way to act once it is complete. \r\n\r\nI did see there is a PubSub class, how does that fit in to this library?\r\n"},"comment":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/comments/292837410","html_url":"https://github.com/MrRio/jsPDF/issues/540#issuecomment-292837410","issue_url":"https://api.github.com/repos/MrRio/jsPDF/issues/540","id":292837410,"user":{"login":"ankithkonda","id":1918487,"avatar_url":"https://avatars2.githubusercontent.com/u/1918487?v=3","gravatar_id":"","url":"https://api.github.com/users/ankithkonda","html_url":"https://github.com/ankithkonda","followers_url":"https://api.github.com/users/ankithkonda/followers","following_url":"https://api.github.com/users/ankithkonda/following{/other_user}","gists_url":"https://api.github.com/users/ankithkonda/gists{/gist_id}","starred_url":"https://api.github.com/users/ankithkonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankithkonda/subscriptions","organizations_url":"https://api.github.com/users/ankithkonda/orgs","repos_url":"https://api.github.com/users/ankithkonda/repos","events_url":"https://api.github.com/users/ankithkonda/events{/privacy}","received_events_url":"https://api.github.com/users/ankithkonda/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T02:49:20Z","updated_at":"2017-04-10T02:49:20Z","body":"Although pull request by @raymondelferink shows as closed, jspdf.debug.js shows nothing related to a callback function for API.save  can anyone confirm that a callback exists? "}}
{"actor":{"display_login":"ankithkonda"}}