From 3d0f1e931084efe07b40898fa613f0d2073647df Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Fri, 15 Apr 2011 19:29:34 -0400 Subject: [PATCH] [#480] _cleanup --> _teardown --- plugins/googlemap/popcorn.googlemap.js | 2 +- popcorn.js | 2 +- test/popcorn.unit.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js index 2f85d66..1a63e54 100644 --- a/plugins/googlemap/popcorn.googlemap.js +++ b/plugins/googlemap/popcorn.googlemap.js @@ -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 ); } diff --git a/popcorn.js b/popcorn.js index c613705..867f941 100644 --- a/popcorn.js +++ b/popcorn.js @@ -674,7 +674,7 @@ // 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 ); } } }); diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index 252a2c9..5d2e380 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -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(); -- 2.43.0