Skip to content

Commit

Permalink
Fixing up some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 17, 2013
1 parent b996e9a commit 89a3b75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/js/ionic-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ angular.module('ionic.ui.slideBox', [])
slider.slide(index);
});

$scope.slider = slider;
$scope.slideBox = slider;

$timeout(function() {
slider.load();
Expand Down Expand Up @@ -1913,7 +1913,7 @@ angular.module('ionic.ui.slideBox', [])
};

$scope.numSlides = function() {
return new Array($scope.slider.getNumSlides());
return new Array($scope.slideBox.getNumSlides());
};

$scope.$watch('currentSlide', function(v) {
Expand Down
4 changes: 2 additions & 2 deletions js/ext/angular/src/directive/ionicSlideBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ angular.module('ionic.ui.slideBox', [])
slider.slide(index);
});

$scope.slider = slider;
$scope.slideBox = slider;

$timeout(function() {
slider.load();
Expand Down Expand Up @@ -116,7 +116,7 @@ angular.module('ionic.ui.slideBox', [])
};

$scope.numSlides = function() {
return new Array($scope.slider.getNumSlides());
return new Array($scope.slideBox.getNumSlides());
};

$scope.$watch('currentSlide', function(v) {
Expand Down
2 changes: 1 addition & 1 deletion js/ext/angular/test/directive/ionicSlideBox.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Ionic Angular Slide Box', function() {
}));

it('Should init', function() {
var scope = el.scope();
var scope = el.isolateScope();
expect(scope.slideBox).not.toBe(undefined);
});
});

0 comments on commit 89a3b75

Please sign in to comment.