nozzle / nzTour

Touring and on-boarding made simple for AngularJS -
http://nozzle.github.io/nzTour/
MIT License
73 stars 24 forks source link

service.cleanup is not a function #18

Closed masimplo closed 8 years ago

masimplo commented 8 years ago

When closing the tour I get this logged service.cleanup is not a function and then although the backdrop is removed I cannot click / scroll on the page.

I noticed in your code that you are declaring $scope.cleanup, but then are using service.cleanup. Is this some kind of mixup?

masimplo commented 8 years ago

This was caused by elem[_addEventListener] is not a function error that was caused by trying to add an event listener to an array. It's fixed in https://github.com/masimakopoulos/nzTour/commit/bcb88aa2b1abfa755ab22d7fbd99311dd474f8d9#diff-7b2763cebf428ba6392e2a5f37f23bd2L387 of https://github.com/nozzle/nzTour/pull/19