{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/530","labels_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/530/comments","events_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/530/events","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/530","id":98143074,"number":530,"title":"TypeError: $scope.$parentNodesScope.$modelValue.indexOf is not a function","user":{"login":"ssivaprasad","id":12725912,"avatar_url":"https://avatars.githubusercontent.com/u/12725912?v=3","gravatar_id":"","url":"https://api.github.com/users/ssivaprasad","html_url":"https://github.com/ssivaprasad","followers_url":"https://api.github.com/users/ssivaprasad/followers","following_url":"https://api.github.com/users/ssivaprasad/following{/other_user}","gists_url":"https://api.github.com/users/ssivaprasad/gists{/gist_id}","starred_url":"https://api.github.com/users/ssivaprasad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssivaprasad/subscriptions","organizations_url":"https://api.github.com/users/ssivaprasad/orgs","repos_url":"https://api.github.com/users/ssivaprasad/repos","events_url":"https://api.github.com/users/ssivaprasad/events{/privacy}","received_events_url":"https://api.github.com/users/ssivaprasad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-30T11:14:47Z","updated_at":"2015-07-30T11:14:47Z","closed_at":null,"body":"I am getting \r\n\r\nTypeError: $scope.$parentNodesScope.$modelValue.indexOf is not a function\r\n at Scope.$scope.index (angular-ui-tree.js:78)\r\n    at Object.dragInfo (angular-ui-tree.js:1137)\r\n    at link.dragStart (angular-ui-tree.js:627)\r\n    at link.dragStartEvent (angular-ui-tree.js:926)\r\n    at angular-ui-tree.js:963\r\n    at angular.js:16299\r\n    at completeOutstandingRequest (angular.js:4924)\r\n    at angular.js:5312\r\n\r\nwhen looked into code angular-ui-tree it is like \r\n $scope.index = function () {\r\n          return $scope.$parentNodesScope.$modelValue.indexOf($scope.$modelValue);\r\n };\r\n\r\n\r\n\r\nI am using Index arrays only.. But still why i am getting this?"}}