Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: null is not an object (evaluating 'd.__cleanup') #592

Closed
khfayzullaev opened this issue Jan 6, 2015 · 2 comments
Closed

Error: null is not an object (evaluating 'd.__cleanup') #592

khfayzullaev opened this issue Jan 6, 2015 · 2 comments

Comments

@khfayzullaev
Copy link
Contributor

Hi,

I am using the Leaflet Directive with the Ionic Framework. With the latest Ionic build, I have encountered the following error Error: null is not an object (evaluating 'd.__cleanup') (FF, Chrome, Safari).

The Ionic is using AngularJS v.1.3.6 as for now. From my point of view, it has something to do with $destroy(); Is there anything that fails to be destroyed?

Thanks!

@khfayzullaev
Copy link
Contributor Author

I have found a problem. Basically, this part of the code is triggered two times:

scope.$on('$destroy', function () {
    map.remove();
    leafletData.unresolveMap(attrs.id);
});

Cannot understand why?

@khfayzullaev
Copy link
Contributor Author

Oh, have found this #539 Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant