Skip to content

Commit

Permalink
Merge pull request #6 from wymsee/fix-zoomContainer-bug
Browse files Browse the repository at this point in the history
Fixes a bug where updating plugin options leaves an old zoomContainer on the page
  • Loading branch information
igorlino committed May 17, 2016
2 parents c7b2908 + 044f1d4 commit 2831987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/angular-ezplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
bootstrapped = true;
} else {
var plugin = angular.element($element).data('ezPlus');
plugin.destroy();
angular.extend(options, $scope.ezpOptions);
if (plugin) {
angular.element($element).ezPlus(options);
Expand Down

0 comments on commit 2831987

Please sign in to comment.