mvindahl/angular-pan-zoom

Throws an error on disableZoomAnimation

Opened this issue · 1 comments

Here is an error.
disableZoomAnimation is not obligatory for $scope.config ?

even if I added this property, still throws an exception.

`angular.js:13550 TypeError: Cannot read property 'disableZoomAnimation' of undefined

at new controller (panzoom.min.js:6)
at Object.invoke (angular.js:4665)
at $controllerInit (angular.js:10115)
at nodeLinkFn (angular.js:9033)
at compositeLinkFn (angular.js:8397)
at compositeLinkFn (angular.js:8400)
at nodeLinkFn (angular.js:9088)
at compositeLinkFn (angular.js:8397)
at nodeLinkFn (angular.js:9088)
at compositeLinkFn (angular.js:8397)(anonymous function) @ angular.js:13550(anonymous function) @ angular.js:10225processQueue @ angular.js:15969(anonymous function) @ angular.js:15977$eval @ angular.js:17229$digest @ angular.js:17045(anonymous function) @ angular.js:17268completeOutstandingRequest @ angular.js:5869(anonymous function) @ angular.js:6145`

Hello Malik. Thanks for reporting. I'll have a look at the issue once time permits. I hope to look at it within the next week or so (currently on vacation). Best regards, /Martin