]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#480] _cleanup --> _teardown
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 15 Apr 2011 23:29:34 +0000 (19:29 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 15 Apr 2011 23:29:34 +0000 (19:29 -0400)
plugins/googlemap/popcorn.googlemap.js
popcorn.js
test/popcorn.unit.js

index 2f85d66e9f7b8fe7a19fb121a5c0ccb57f2d0482..1a63e54c7b9be7664592df3dad1df7d21ebf8583 100644 (file)
@@ -188,7 +188,7 @@ var googleCallback;
           map.getDiv().style.display = "none";
         }
       },
-      _cleanup: function( options ) {
+      _teardown: function( options ) {
         // the map must be manually removed
         document.getElementById( options.target ).removeChild( newdiv );
       }
index c6137052c02daa94cc5af14859ea41dd8f645656..867f941dfb0dc06633fb9a5efeb132a593b4c99e 100644 (file)
         //  Capture the position of the track being removed.
         if ( o._id === trackId ) {
           indexWasAt = i;
-          o._natives._cleanup && o._natives._cleanup.call( obj, o );
+          o._natives._teardown && o._natives._teardown.call( obj, o );
         }
       }
     });
index 252a2c90fd8acdba47366cfb067c634b4c7a4830..5d2e380a6c11c0ef71be2d1c1d3c796513b86dfc 100644 (file)
@@ -1457,7 +1457,7 @@ test("Remove Plugin", function () {
 
       options.exist = true;
     },
-    _cleanup: function( options ) {
+    _teardown: function( options ) {
 
       ok( true, "cleanup function is called during removal" );
       plus();