From: ScottDowne Date: Wed, 20 Apr 2011 15:40:42 +0000 (-0400) Subject: [#480] setting any closure scoped variables to null because there is no other time... X-Git-Tag: v0.5~17 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=550cec34b60f7c7aee794b1d2b72bfa449525dc5;p=popcorn-js.git [#480] setting any closure scoped variables to null because there is no other time to access or remove them via popcorn's removeTrackEvent --- diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js index 1a63e54..f517612 100644 --- a/plugins/googlemap/popcorn.googlemap.js +++ b/plugins/googlemap/popcorn.googlemap.js @@ -191,6 +191,7 @@ var googleCallback; _teardown: function( options ) { // the map must be manually removed document.getElementById( options.target ).removeChild( newdiv ); + newdiv = map = location = null; } }; },