]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#480] setting any closure scoped variables to null because there is no other time...
authorScottDowne <sdowne@learn.senecac.on.ca>
Wed, 20 Apr 2011 15:40:42 +0000 (11:40 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Wed, 20 Apr 2011 15:40:42 +0000 (11:40 -0400)
plugins/googlemap/popcorn.googlemap.js

index 1a63e54c7b9be7664592df3dad1df7d21ebf8583..f5176124b799ebd95bb8f59914b0c53a1012c0f8 100644 (file)
@@ -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;
       }
     };
   },