{"action":"created","issue":{"url":"https://api.github.com/repos/konvajs/konva/issues/193","repository_url":"https://api.github.com/repos/konvajs/konva","labels_url":"https://api.github.com/repos/konvajs/konva/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/konvajs/konva/issues/193/comments","events_url":"https://api.github.com/repos/konvajs/konva/issues/193/events","html_url":"https://github.com/konvajs/konva/issues/193","id":197141222,"number":193,"title":"dragBoundFunc only works on creation. Can't be set afterwards","user":{"login":"azev","id":6639188,"avatar_url":"https://avatars.githubusercontent.com/u/6639188?v=3","gravatar_id":"","url":"https://api.github.com/users/azev","html_url":"https://github.com/azev","followers_url":"https://api.github.com/users/azev/followers","following_url":"https://api.github.com/users/azev/following{/other_user}","gists_url":"https://api.github.com/users/azev/gists{/gist_id}","starred_url":"https://api.github.com/users/azev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azev/subscriptions","organizations_url":"https://api.github.com/users/azev/orgs","repos_url":"https://api.github.com/users/azev/repos","events_url":"https://api.github.com/users/azev/events{/privacy}","received_events_url":"https://api.github.com/users/azev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-22T10:21:00Z","updated_at":"2016-12-22T13:45:42Z","closed_at":"2016-12-22T13:14:50Z","body":"Works:\r\n\r\n```\r\nvar layer = new Konva.Layer({\r\n  draggable: true,\r\n  dragBoundFunc : function(pos) {\r\n\treturn {\r\n\t\tx: this.getAbsolutePosition().x,\r\n\t\ty: pos.y\r\n}\r\n}});\r\n```\r\n\r\nDoesn't work:\r\n```\r\nvar layer = new Konva.Layer({\r\n  draggable: true\r\n});\r\n\r\nlayer.dragBoundFunc = function(pos) {\r\n\treturn {\r\n\t\tx: this.getAbsolutePosition().x,\r\n\t\ty: pos.y\r\n}\r\n}\r\n```\r\n\r\nHow can I set dragBoundFunc  **after** the object creation?"},"comment":{"url":"https://api.github.com/repos/konvajs/konva/issues/comments/268802440","html_url":"https://github.com/konvajs/konva/issues/193#issuecomment-268802440","issue_url":"https://api.github.com/repos/konvajs/konva/issues/193","id":268802440,"user":{"login":"azev","id":6639188,"avatar_url":"https://avatars.githubusercontent.com/u/6639188?v=3","gravatar_id":"","url":"https://api.github.com/users/azev","html_url":"https://github.com/azev","followers_url":"https://api.github.com/users/azev/followers","following_url":"https://api.github.com/users/azev/following{/other_user}","gists_url":"https://api.github.com/users/azev/gists{/gist_id}","starred_url":"https://api.github.com/users/azev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azev/subscriptions","organizations_url":"https://api.github.com/users/azev/orgs","repos_url":"https://api.github.com/users/azev/repos","events_url":"https://api.github.com/users/azev/events{/privacy}","received_events_url":"https://api.github.com/users/azev/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T13:45:42Z","updated_at":"2016-12-22T13:45:42Z","body":"Thanks! attention failed :)"}}
{"actor":{"display_login":"azev"}}