Skip to content

Commit

Permalink
Memory
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 14, 2015
1 parent 75df701 commit ea655d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/angular/directive/scroll.js
Expand Up @@ -87,7 +87,7 @@ function($timeout, $controller, $ionicBind, $ionicConfig) {
if (!$scope.direction) { $scope.direction = 'y'; }
var isPaging = $scope.$eval($scope.paging) === true;

if(nativeScrolling) {
if (nativeScrolling) {
$element.addClass('overflow-scroll');
}

Expand Down
9 changes: 3 additions & 6 deletions js/angular/directive/slides.js
Expand Up @@ -55,7 +55,7 @@ function($animate, $timeout) {
this.update = function() {
$timeout(function() {
_this.__slider.update();
if(_this._options.loop) {
if (_this._options.loop) {
_this.__slider.createLoop();
}

Expand Down Expand Up @@ -106,18 +106,15 @@ function($animate, $timeout) {
}
};
}])
.directive('ionSlidePage', ['$timeout', function($timeout) {
.directive('ionSlidePage', [function() {
return {
restrict: 'E',
require: '?^ionSlides',
transclude: true,
replace: true,
template: '<div class="swiper-slide" ng-transclude></div>',
link: function($scope, $element, $attr, ionSlidesCtrl) {
$timeout(function() {
ionSlidesCtrl.rapidUpdate();
})

ionSlidesCtrl.rapidUpdate();
}
};
}]);
3 changes: 2 additions & 1 deletion js/views/slidesView.js
Expand Up @@ -2053,7 +2053,8 @@
// Create looped slides
s.createLoop = function () {

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

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

Expand Down

0 comments on commit ea655d6

Please sign in to comment.