Skip to content

Commit 89a3b75

Browse files
committed
Fixing up some tests
1 parent b996e9a commit 89a3b75

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/js/ionic-angular.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ angular.module('ionic.ui.slideBox', [])
18561856
slider.slide(index);
18571857
});
18581858

1859-
$scope.slider = slider;
1859+
$scope.slideBox = slider;
18601860

18611861
$timeout(function() {
18621862
slider.load();
@@ -1913,7 +1913,7 @@ angular.module('ionic.ui.slideBox', [])
19131913
};
19141914

19151915
$scope.numSlides = function() {
1916-
return new Array($scope.slider.getNumSlides());
1916+
return new Array($scope.slideBox.getNumSlides());
19171917
};
19181918

19191919
$scope.$watch('currentSlide', function(v) {

js/ext/angular/src/directive/ionicSlideBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ angular.module('ionic.ui.slideBox', [])
5959
slider.slide(index);
6060
});
6161

62-
$scope.slider = slider;
62+
$scope.slideBox = slider;
6363

6464
$timeout(function() {
6565
slider.load();
@@ -116,7 +116,7 @@ angular.module('ionic.ui.slideBox', [])
116116
};
117117

118118
$scope.numSlides = function() {
119-
return new Array($scope.slider.getNumSlides());
119+
return new Array($scope.slideBox.getNumSlides());
120120
};
121121

122122
$scope.$watch('currentSlide', function(v) {

js/ext/angular/test/directive/ionicSlideBox.unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('Ionic Angular Slide Box', function() {
2626
}));
2727

2828
it('Should init', function() {
29-
var scope = el.scope();
29+
var scope = el.isolateScope();
3030
expect(scope.slideBox).not.toBe(undefined);
3131
});
3232
});

0 commit comments

Comments
 (0)