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

@@ -93,7 +93,7 @@ angular.module('app').directive('shipyardHeader', ['lodash', '$window', '$rootSc
scope.resetTextSize = function() { scope.resetTextSize = function() {
if ($rootScope.sizeRatio != 1) { if ($rootScope.sizeRatio != 1) {
scope.textSizeChange(1); scope.textSizeChange(1);
scope.$broadcast('reset'); scope.$broadcast('reset',1);
} }
}; };

View File

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