{"action":"opened","issue":{"url":"https://api.github.com/repos/sporritt/jsPlumb/issues/392","labels_url":"https://api.github.com/repos/sporritt/jsPlumb/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/sporritt/jsPlumb/issues/392/comments","events_url":"https://api.github.com/repos/sporritt/jsPlumb/issues/392/events","html_url":"https://github.com/sporritt/jsPlumb/issues/392","id":89281012,"number":392,"title":"onMaxConnections jpc isn't defined","user":{"login":"webmull","id":357783,"avatar_url":"https://avatars.githubusercontent.com/u/357783?v=3","gravatar_id":"","url":"https://api.github.com/users/webmull","html_url":"https://github.com/webmull","followers_url":"https://api.github.com/users/webmull/followers","following_url":"https://api.github.com/users/webmull/following{/other_user}","gists_url":"https://api.github.com/users/webmull/gists{/gist_id}","starred_url":"https://api.github.com/users/webmull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmull/subscriptions","organizations_url":"https://api.github.com/users/webmull/orgs","repos_url":"https://api.github.com/users/webmull/repos","events_url":"https://api.github.com/users/webmull/events{/privacy}","received_events_url":"https://api.github.com/users/webmull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T12:32:08Z","updated_at":"2015-06-18T12:32:08Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm getting an error due to line:\r\n\r\nhttps://github.com/sporritt/jsPlumb/blob/master/dist/js/dom.jsPlumb-1.7.5.js#L4618\r\n\r\nI'm just using makeSource & makeTarget in my own implementation, but onMaxConnections never triggers because I get jpc is undefined, which from tracking the code seems to be coming from the above line.\r\n\r\nLooking at the flow chart demo on the jsplumb site I can see it works fine, but the implementation differs as the example calls addEndPoint which I think calls maxConnections from the following:\r\n\r\nhttps://github.com/sporritt/jsPlumb/blob/master/dist/js/dom.jsPlumb-1.7.5.js#L7329\r\n\r\nis there any reason where there are two different triggers for onMaxConnections?\r\n\r\nCheers,\r\nAdam"}}