Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea655d6

Browse files
committedDec 14, 2015
Memory
1 parent 75df701 commit ea655d6

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed
 

‎js/angular/directive/scroll.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function($timeout, $controller, $ionicBind, $ionicConfig) {
8787
if (!$scope.direction) { $scope.direction = 'y'; }
8888
var isPaging = $scope.$eval($scope.paging) === true;
8989

90-
if(nativeScrolling) {
90+
if (nativeScrolling) {
9191
$element.addClass('overflow-scroll');
9292
}
9393

‎js/angular/directive/slides.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function($animate, $timeout) {
5555
this.update = function() {
5656
$timeout(function() {
5757
_this.__slider.update();
58-
if(_this._options.loop) {
58+
if (_this._options.loop) {
5959
_this.__slider.createLoop();
6060
}
6161

@@ -106,18 +106,15 @@ function($animate, $timeout) {
106106
}
107107
};
108108
}])
109-
.directive('ionSlidePage', ['$timeout', function($timeout) {
109+
.directive('ionSlidePage', [function() {
110110
return {
111111
restrict: 'E',
112112
require: '?^ionSlides',
113113
transclude: true,
114114
replace: true,
115115
template: '<div class="swiper-slide" ng-transclude></div>',
116116
link: function($scope, $element, $attr, ionSlidesCtrl) {
117-
$timeout(function() {
118-
ionSlidesCtrl.rapidUpdate();
119-
})
120-
117+
ionSlidesCtrl.rapidUpdate();
121118
}
122119
};
123120
}]);

‎js/views/slidesView.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,8 @@
20532053
// Create looped slides
20542054
s.createLoop = function () {
20552055

2056-
s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass).remove();
2056+
var toRemove = s.wrapper.children('.' + s.params.slideClass + '.' + s.params.slideDuplicateClass);
2057+
angular.element(toRemove).remove();
20572058

20582059
var slides = s.wrapper.children('.' + s.params.slideClass);
20592060

0 commit comments

Comments
 (0)
Please sign in to comment.