{"action":"created","issue":{"url":"https://api.github.com/repos/mattboldt/typed.js/issues/52","labels_url":"https://api.github.com/repos/mattboldt/typed.js/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/mattboldt/typed.js/issues/52/comments","events_url":"https://api.github.com/repos/mattboldt/typed.js/issues/52/events","html_url":"https://github.com/mattboldt/typed.js/pull/52","id":50833258,"number":52,"title":"Added pauseTyping() and continueTyping() Methods.","user":{"login":"codekipple","id":221714,"avatar_url":"https://avatars.githubusercontent.com/u/221714?v=3","gravatar_id":"","url":"https://api.github.com/users/codekipple","html_url":"https://github.com/codekipple","followers_url":"https://api.github.com/users/codekipple/followers","following_url":"https://api.github.com/users/codekipple/following{/other_user}","gists_url":"https://api.github.com/users/codekipple/gists{/gist_id}","starred_url":"https://api.github.com/users/codekipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codekipple/subscriptions","organizations_url":"https://api.github.com/users/codekipple/orgs","repos_url":"https://api.github.com/users/codekipple/repos","events_url":"https://api.github.com/users/codekipple/events{/privacy}","received_events_url":"https://api.github.com/users/codekipple/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-03T12:50:44Z","updated_at":"2015-08-03T22:45:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mattboldt/typed.js/pulls/52","html_url":"https://github.com/mattboldt/typed.js/pull/52","diff_url":"https://github.com/mattboldt/typed.js/pull/52.diff","patch_url":"https://github.com/mattboldt/typed.js/pull/52.patch"},"body":"I think the commented out stop() function was having issues because there is a jQuery function called stop() and when dealing with a jQuery object and trying to chain the methods the names were clashing.\r\n\r\nI ended up renaming the method pauseTyping() as i think this is a better explanation of what i've implemented. I needed two methods to pause and continue typing. So if the typerwriter was actually backspacing i wanted the continue typing method to carry on where it left off backspacing.\r\n\r\nThis meant i needed to add an extra variable on self called 'backspacing' and set that boolean in the typewrite() and backspace() methods.\r\n\r\nCheck out this codepen to see it in action - http://codepen.io/ralcus/pen/pvjObB/\r\n\r\nYou may want to go a different route with your stop and start methods. But either way i hope this pull request is of use/help."},"comment":{"url":"https://api.github.com/repos/mattboldt/typed.js/issues/comments/127425277","html_url":"https://github.com/mattboldt/typed.js/pull/52#issuecomment-127425277","issue_url":"https://api.github.com/repos/mattboldt/typed.js/issues/52","id":127425277,"user":{"login":"xabispacebiker","id":1733884,"avatar_url":"https://avatars.githubusercontent.com/u/1733884?v=3","gravatar_id":"","url":"https://api.github.com/users/xabispacebiker","html_url":"https://github.com/xabispacebiker","followers_url":"https://api.github.com/users/xabispacebiker/followers","following_url":"https://api.github.com/users/xabispacebiker/following{/other_user}","gists_url":"https://api.github.com/users/xabispacebiker/gists{/gist_id}","starred_url":"https://api.github.com/users/xabispacebiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabispacebiker/subscriptions","organizations_url":"https://api.github.com/users/xabispacebiker/orgs","repos_url":"https://api.github.com/users/xabispacebiker/repos","events_url":"https://api.github.com/users/xabispacebiker/events{/privacy}","received_events_url":"https://api.github.com/users/xabispacebiker/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T22:45:51Z","updated_at":"2015-08-03T22:45:51Z","body":"So nice! I managed to get it working with your solution @codekipple , thanks a lot. Also thanks to @chancegrissom for the modification. However, I was getting an error calling the reset function when the showCursor was set to false. I just changed the line 343:\r\n\r\n    this.cursor.remove();\r\n\r\nto\r\n\r\n    if (this.cursor) this.cursor.remove();"}}