Fix to slider reset event

This commit is contained in:
Colin McLeod
2015-09-01 20:47:43 -07:00
parent eb0f611d78
commit 30ea10830c
2 changed files with 3 additions and 3 deletions

View File

@@ -76,8 +76,8 @@ angular.module('app').directive('slider', ['$window', function($window) {
angular.element($window).bind('orientationchange resize', render);
}
scope.$on('reset', function() {
val = def;
scope.$on('reset', function(e, resetVal) {
val = resetVal;
drawBrush();
});