{"action":"created","issue":{"url":"https://api.github.com/repos/kamilkp/angular-sortable-view/issues/18","labels_url":"https://api.github.com/repos/kamilkp/angular-sortable-view/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/kamilkp/angular-sortable-view/issues/18/comments","events_url":"https://api.github.com/repos/kamilkp/angular-sortable-view/issues/18/events","html_url":"https://github.com/kamilkp/angular-sortable-view/issues/18","id":50184881,"number":18,"title":"Custom handle error","user":{"login":"papand13","id":6909686,"avatar_url":"https://avatars.githubusercontent.com/u/6909686?v=3","gravatar_id":"","url":"https://api.github.com/users/papand13","html_url":"https://github.com/papand13","followers_url":"https://api.github.com/users/papand13/followers","following_url":"https://api.github.com/users/papand13/following{/other_user}","gists_url":"https://api.github.com/users/papand13/gists{/gist_id}","starred_url":"https://api.github.com/users/papand13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papand13/subscriptions","organizations_url":"https://api.github.com/users/papand13/orgs","repos_url":"https://api.github.com/users/papand13/repos","events_url":"https://api.github.com/users/papand13/events{/privacy}","received_events_url":"https://api.github.com/users/papand13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-26T14:27:47Z","updated_at":"2015-01-24T16:48:38Z","closed_at":null,"body":"When i add a custom handle through sv-handle, i get the following error:\r\n````\r\n    TypeError: undefined is not a function\r\n    at link (http://localhost:59633//js/lib/angular-sortable-view.js:491:45)\r\n    at invokeLinkFn (http://localhost:59633//js/lib/angular.js:8111:9)\r\n    at nodeLinkFn (http://localhost:59633//js/lib/angular.js:7623:11)\r\n    at compositeLinkFn (http://localhost:59633//js/lib/angular.js:6991:13)\r\n    at compositeLinkFn (http://localhost:59633//js/lib/angular.js:6994:13)\r\n    at nodeLinkFn (http://localhost:59633//js/lib/angular.js:7618:24)\r\n    at compositeLinkFn (http://localhost:59633//js/lib/angular.js:6991:13)\r\n    at publicLinkFn (http://localhost:59633//js/lib/angular.js:6870:30)\r\n    at boundTranscludeFn (http://localhost:59633//js/lib/angular.js:7009:16)\r\n    at controllersBoundTransclude (http://localhost:59633//js/lib/angular.js:7650:18) <div class=\"queue-handle\" sv-handle=\"\" ng-click=\"toggleQueueDisplay(queue);\">\r\n````\r\nI have the repeated list set up like this:\r\n````\r\n<ul id=\"queueList\" sv-root sv-part=\"queues\">\r\n    <li class=\"queue\" ng-repeat=\"queue in queues\" sv-element>\r\n        <div class=\"queue-header\">\r\n            <div class=\"queue-handle\" sv-handle ng-click=\"toggleQueueDisplay(queue);\">\r\n                <div class=\"queue-blue-box\">\r\n                    <center><span>{{queue.queuemembers.queue_length}}</span></center>\r\n                </div>\r\n                <span class=\"queue-name\">{{queue.queuemembers.name}}</span>\r\n            </div>\r\n            <div class=\"queue-toggler\" ng-class=\"{active: queue.queuemembers.anyPhoneJoined}\">\r\n                <button ng-click=\"queue.queuemembers.anyPhoneJoined = !queue.queuemembers.anyPhoneJoined\"><span class=\"queue-circle\"></span></button>\r\n            </div>\r\n        </div>\r\n    </li>\r\n</ul>\r\n````\r\n\r\nThe error occurs in this part of the plugin:\r\n````\r\n\tmodule.directive('svHandle', function(){\r\n\t\treturn {\r\n\t\t\trequire: '?^svElement',\r\n\t\t\tlink: function($scope, $element, $attrs, $ctrl){\r\n\t\t\t\tif($ctrl)\r\n\t\t\t\t\t$ctrl.handle = $element.add($ctrl.handle); // support multiple handles\r\n\t\t\t}\r\n\t\t};\r\n\t});\r\n````\r\n\r\nI could really use some help with this, as i need the handle function. Right now i cannot press any buttons on my item, because the whole thing is draggable now.\r\n\r\nThanks,\r\nJonas."},"comment":{"url":"https://api.github.com/repos/kamilkp/angular-sortable-view/issues/comments/71326460","html_url":"https://github.com/kamilkp/angular-sortable-view/issues/18#issuecomment-71326460","issue_url":"https://api.github.com/repos/kamilkp/angular-sortable-view/issues/18","id":71326460,"user":{"login":"jdromine","id":6561200,"avatar_url":"https://avatars.githubusercontent.com/u/6561200?v=3","gravatar_id":"","url":"https://api.github.com/users/jdromine","html_url":"https://github.com/jdromine","followers_url":"https://api.github.com/users/jdromine/followers","following_url":"https://api.github.com/users/jdromine/following{/other_user}","gists_url":"https://api.github.com/users/jdromine/gists{/gist_id}","starred_url":"https://api.github.com/users/jdromine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdromine/subscriptions","organizations_url":"https://api.github.com/users/jdromine/orgs","repos_url":"https://api.github.com/users/jdromine/repos","events_url":"https://api.github.com/users/jdromine/events{/privacy}","received_events_url":"https://api.github.com/users/jdromine/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T16:48:38Z","updated_at":"2015-01-24T16:48:38Z","body":"I am getting the same issue as well.  Will you fix this in the next version or should I go ahead implement my own version of add in jqLite?"}}