{"action":"closed","issue":{"url":"https://api.github.com/repos/jchristman/reactive-modal/issues/6","repository_url":"https://api.github.com/repos/jchristman/reactive-modal","labels_url":"https://api.github.com/repos/jchristman/reactive-modal/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jchristman/reactive-modal/issues/6/comments","events_url":"https://api.github.com/repos/jchristman/reactive-modal/issues/6/events","html_url":"https://github.com/jchristman/reactive-modal/issues/6","id":133542414,"number":6,"title":"buttons.ok.on is not a function()","user":{"login":"jasonnathan","id":780157,"avatar_url":"https://avatars.githubusercontent.com/u/780157?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonnathan","html_url":"https://github.com/jasonnathan","followers_url":"https://api.github.com/users/jasonnathan/followers","following_url":"https://api.github.com/users/jasonnathan/following{/other_user}","gists_url":"https://api.github.com/users/jasonnathan/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonnathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonnathan/subscriptions","organizations_url":"https://api.github.com/users/jasonnathan/orgs","repos_url":"https://api.github.com/users/jasonnathan/repos","events_url":"https://api.github.com/users/jasonnathan/events{/privacy}","received_events_url":"https://api.github.com/users/jasonnathan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-14T14:12:54Z","updated_at":"2016-02-14T14:38:03Z","closed_at":"2016-02-14T14:38:03Z","body":"Hi there, I am suddenly getting an error with button event handling. This was not a problem I had noticed before until recently. Here's how I reproduced it in the browser console.\r\n\r\n    var buttons = {ok:{label:\"ok\"}, cancel:{label:\"cancel\"}};\r\n    var options = {template: Template.standardOkCancelDialog, buttons: buttons};\r\n    var rd = ReactiveModal.initDialog(options)\r\n    rd.buttons.ok.on\r\n    // --> undefined\r\n    rd.buttons.ok.on()\r\n    // --> Uncaught TypeError: rd.buttons.ok.on is not a function(…)\r\n\r\nusing `jchristman:reactive-modal@1.0.5` on `Meteor 1.2.1`"}}