{"action":"created","issue":{"url":"https://api.github.com/repos/angular-slider/angularjs-slider/issues/659","repository_url":"https://api.github.com/repos/angular-slider/angularjs-slider","labels_url":"https://api.github.com/repos/angular-slider/angularjs-slider/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/angular-slider/angularjs-slider/issues/659/comments","events_url":"https://api.github.com/repos/angular-slider/angularjs-slider/issues/659/events","html_url":"https://github.com/angular-slider/angularjs-slider/issues/659","id":388663118,"node_id":"MDU6SXNzdWUzODg2NjMxMTg=","number":659,"title":"rzSlider onEnd event is called everytime when there is a user action in UI.","user":{"login":"akgee10","id":45690150,"node_id":"MDQ6VXNlcjQ1NjkwMTUw","avatar_url":"https://avatars2.githubusercontent.com/u/45690150?v=4","gravatar_id":"","url":"https://api.github.com/users/akgee10","html_url":"https://github.com/akgee10","followers_url":"https://api.github.com/users/akgee10/followers","following_url":"https://api.github.com/users/akgee10/following{/other_user}","gists_url":"https://api.github.com/users/akgee10/gists{/gist_id}","starred_url":"https://api.github.com/users/akgee10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akgee10/subscriptions","organizations_url":"https://api.github.com/users/akgee10/orgs","repos_url":"https://api.github.com/users/akgee10/repos","events_url":"https://api.github.com/users/akgee10/events{/privacy}","received_events_url":"https://api.github.com/users/akgee10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-07T13:51:22Z","updated_at":"2018-12-07T14:00:50Z","closed_at":null,"author_association":"NONE","body":"I am using a rzSlider which is inside a ng-repeat block. I need to call a specific function when the slider is moved so I have used onEnd function as below to call that function and it is working properly.\r\n\r\nBut the issue here is  below html has ng-click=\"sort()\", when this function is called then onEnd:triggerFilter() function is also hitting unnecessarily.\r\n\r\n<div ng-click=\"refreshSlider()\">Slider\r\n<div ng-repeat=\"info in information\">\r\n<div ng-repeat=\"filter in filters\">\r\n    <rzslider\r\n         rz-slider-model=\"filter.min\"\r\n         rz-slider-high=\"filter.max\"\r\n         rz-slider-options=\"{floor:filter.options.min, ceil:filter.options.max, onEnd:triggerFilter(info.type,filter)}\"></rzslider>\r\n</div>\r\n</div>\r\n<div ng-click=\"sort()\">Sort</div>\r\n</div>\r\n\r\nHere is my slider options looks like\r\n\r\n$scope.filters=[\r\n{\r\nname:\"first\",\r\nmin:0,\r\nmax:5,\r\noptions:\r\n{\r\nfloor:1,\r\nceil:2\r\n},\r\n},\r\n{\r\nname:\"second\",\r\nmin:0,\r\nmax:5,\r\noptions:\r\n{\r\nfloor:1,\r\nceil:2\r\n},\r\n},];\r\n\r\n\r\n$scope.triggerFilter = function(type,filter){\r\n// All slider code logic resides here.\r\n};\r\n\r\n$scope.refreshSlider = function() {\r\n  $timeout(function() {\r\n    $scope.$broadcast('rzSliderForceRender')\r\n  })\r\n}\r\n\r\nI suspects this is happening because of refreshSlider function, so I removed this function but it doesn't worked out. Anyone please help me on this issue."},"comment":{"url":"https://api.github.com/repos/angular-slider/angularjs-slider/issues/comments/445241029","html_url":"https://github.com/angular-slider/angularjs-slider/issues/659#issuecomment-445241029","issue_url":"https://api.github.com/repos/angular-slider/angularjs-slider/issues/659","id":445241029,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTI0MTAyOQ==","user":{"login":"akgee10","id":45690150,"node_id":"MDQ6VXNlcjQ1NjkwMTUw","avatar_url":"https://avatars2.githubusercontent.com/u/45690150?v=4","gravatar_id":"","url":"https://api.github.com/users/akgee10","html_url":"https://github.com/akgee10","followers_url":"https://api.github.com/users/akgee10/followers","following_url":"https://api.github.com/users/akgee10/following{/other_user}","gists_url":"https://api.github.com/users/akgee10/gists{/gist_id}","starred_url":"https://api.github.com/users/akgee10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akgee10/subscriptions","organizations_url":"https://api.github.com/users/akgee10/orgs","repos_url":"https://api.github.com/users/akgee10/repos","events_url":"https://api.github.com/users/akgee10/events{/privacy}","received_events_url":"https://api.github.com/users/akgee10/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T14:00:50Z","updated_at":"2018-12-07T14:00:50Z","author_association":"NONE","body":"[rzslider-html.txt](https://github.com/angular-slider/angularjs-slider/files/2657493/rzslider-html.txt)\r\n"}}
{"actor":{"display_login":"akgee10"}}