fix(slideBox): disable autoPlay when disconnected

This commit is contained in:
Adam Bradley
2014-12-08 01:59:24 -06:00
parent 7b39bc442e
commit 8ec3979ce5
2 changed files with 12 additions and 1 deletions

View File

@@ -98,7 +98,9 @@ function(scope, element, $log, $document, $$q, $timeout, $interval, $$ionicAttac
if (angular.isNumber(newInterval) && newInterval > 0) {
self.autoPlayTimeout = $interval(function() {
self.select(self.next());
if (!ionic.Utils.isScopeDisconnected(scope)) {
self.select(self.next());
}
}, newInterval);
}
}