angular-owl-carousel2
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "angular-owl-carousel2", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Owl carousel 2 imp for angularjs", | ||
@@ -5,0 +5,0 @@ "main": "src/angular-owl-carousel-2.js", |
@@ -137,16 +137,15 @@ /** | ||
$scope.$watchCollection('owlItems', function (items) { | ||
if ((items && items.length > 0 && !initial)) { | ||
destroyOwl(); | ||
initOwl(); | ||
$scope.$watch('owlItems', function () { | ||
try{ | ||
destroyOwl();//always attempt destruction | ||
} | ||
else if ((items && items.length > 0 && initial)) { | ||
initial = false; | ||
initOwl(); | ||
catch(e){} | ||
if($scope.owlItems instanceof Array){ | ||
initOwl();//if array, try to instantiate | ||
} | ||
}, true); | ||
}, true); | ||
function buildProperties(props) { | ||
@@ -178,2 +177,3 @@ var build = {}; | ||
owlCarousel.owlCarousel('destroy'); | ||
$element.find('.owl-stage').remove();//for some reason its left behind. remove it | ||
} | ||
@@ -180,0 +180,0 @@ } |
@@ -22,8 +22,3 @@ /** | ||
}; | ||
$timeout(function () { | ||
$scope.items.push(11); | ||
},2000) | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73850
206