From: ScottDowne Date: Fri, 15 Apr 2011 23:29:34 +0000 (-0400) Subject: [#480] _cleanup --> _teardown X-Git-Tag: v0.5~18^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3d0f1e931084efe07b40898fa613f0d2073647df;p=popcorn-js.git [#480] _cleanup --> _teardown --- 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();