diff --git a/demo/index.html b/demo/index.html
index b05dc71..9de314f 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -16,12 +16,10 @@
$rootScope.$broadcast('scrollpointShouldReset');
};
$scope.scrollAction = function(element, distance){
- // scroll events are triggered by DOM, so use $scope.$apply();
- $scope.$apply(function(){
- $scope.actionClass = (distance < 0) ? 'warning' : 'info';
- $scope.actionDistance = distance;
- });
+ $scope.actionClass = (distance < 0) ? 'warning' : 'info';
+ $scope.actionDistance = distance;
};
+ $scope.word = 'scrollin';
});