{"action":"closed","issue":{"url":"https://api.github.com/repos/jcbrand/converse.js/issues/331","labels_url":"https://api.github.com/repos/jcbrand/converse.js/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/jcbrand/converse.js/issues/331/comments","events_url":"https://api.github.com/repos/jcbrand/converse.js/issues/331/events","html_url":"https://github.com/jcbrand/converse.js/issues/331","id":60531948,"number":331,"title":"Event listening issue","user":{"login":"giorgiopaolucci","id":8329902,"avatar_url":"https://avatars.githubusercontent.com/u/8329902?v=3","gravatar_id":"","url":"https://api.github.com/users/giorgiopaolucci","html_url":"https://github.com/giorgiopaolucci","followers_url":"https://api.github.com/users/giorgiopaolucci/followers","following_url":"https://api.github.com/users/giorgiopaolucci/following{/other_user}","gists_url":"https://api.github.com/users/giorgiopaolucci/gists{/gist_id}","starred_url":"https://api.github.com/users/giorgiopaolucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giorgiopaolucci/subscriptions","organizations_url":"https://api.github.com/users/giorgiopaolucci/orgs","repos_url":"https://api.github.com/users/giorgiopaolucci/repos","events_url":"https://api.github.com/users/giorgiopaolucci/events{/privacy}","received_events_url":"https://api.github.com/users/giorgiopaolucci/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T16:54:38Z","updated_at":"2015-03-11T09:43:42Z","closed_at":"2015-03-11T09:43:42Z","body":"Dear Jc,\r\nI successfully implemented converse.js 0.8.2 and I associated custom functions to specific events. Upgrading to 0.9, my custom functions are not working any more.\r\nAs a test bed I modified dev.html file provided with converse.js official distribution (source code follows) and added a simple custom function printing an alert popup; all works perfectly.  If I change the row including converse.min.js pointing to v0.9 version this simple function does not work any more.\r\nMy system is a debian wheezy. \r\n\r\nCould you kindly give my ant clue to investigate this?\r\n\r\nBest regards.\r\nGiorgio\r\n=================================\r\n\r\n <!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <title>Converse.js</title>\r\n    <meta charset=\"utf-8\">\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n    <meta name=\"description\" content=\"Converse.js: A free chat client for your website\" />\r\n    <meta name=\"author\" content=\"JC Brand\" />\r\n    <meta name=\"keywords\" content=\"xmpp chat webchat converse.js\" />\r\n    <link rel=\"shortcut icon\" type=\"image/ico\" href=\"css/images/favicon.ico\"/>\r\n    <link type=\"text/css\" rel=\"stylesheet\" media=\"screen\" href=\"components/bootstrap/dist/css/bootstrap.min.css\" />\r\n    <link type=\"text/css\" rel=\"stylesheet\" media=\"screen\" href=\"components/fontawesome/css/font-awesome.min.css\" />\r\n    <link type=\"text/css\" rel=\"stylesheet\" media=\"screen\" href=\"css/theme.css\" />\r\n    <link type=\"text/css\" rel=\"stylesheet\" media=\"screen\" href=\"css/converse.css\" />\r\n    <script data-main=\"main\" src=\"components/requirejs/require.js\"></script>\r\n   <script src=\"/converse.js.0.8.2/builds/converse.min.js\"></script>\r\n\r\n</head>\r\n\r\n<body id=\"page-top\" data-spy=\"scroll\" data-target=\".navbar-custom\">\r\n    <nav class=\"navbar navbar-custom navbar-fixed-top\" role=\"navigation\">\r\n        <div class=\"container\">\r\n            <div class=\"navbar-header page-scroll\">\r\n                <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-main-collapse\">\r\n                    <i class=\"fa fa-bars\"></i>\r\n                </button>\r\n            </div>\r\n            <div class=\"collapse navbar-collapse navbar-right navbar-main-collapse\">\r\n                <ul class=\"nav navbar-nav\"><li> <a href=\"/docs/html/index.html\">Documentation</a> </li>\r\n                </ul>\r\n            </div>\r\n        </div>\r\n    </nav>\r\n\r\n    <section class=\"intro\">\r\n        <div class=\"intro-body\">\r\n            <div class=\"container\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-md-8 col-md-offset-2\">\r\n                        <h1 class=\"brand-heading\"><i class=\"icon-conversejs\"></i>Converse.js</h1>\r\n                        <p class=\"intro-text\">Developer page.</p>\r\n                        <p class=\"intro-text\">\r\n                            Converse.js will only work on this page if you have\r\n                            <a href=\"https://conversejs.org/docs/html/development.html\">set up the development environment</a>.\r\n                        </p>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </section>\r\n</body>\r\n\r\n<script>\r\n    require(['converse'], function (converse) {\r\n        converse.initialize({\r\n            bosh_service_url: 'https://mailweb.unipd.it/http-bind/', // Please use this connection manager only for testing purposes\r\n            i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported\r\n            keepalive: true,\r\n            message_carbons: true,\r\n            play_sounds: true,\r\n            roster_groups: true,\r\n            show_controlbox_by_default: true,\r\n            xhr_user_search: false,\r\n visible_toolbar_buttons: {call: true,clear: true, emoticons: true, toggle_participants: true },\r\n            debug: true\r\n        });\r\nconverse.on('callButtonClicked',function (event,data,buddy) { alert('ciao'); });\r\n    });\r\n\r\n</script>\r\n</html>\r\n"}}