From: David Seifried Date: Tue, 17 May 2011 16:13:20 +0000 (-0400) Subject: Fixed a few errors I made, working fine now X-Git-Tag: v0.6~3^2~1^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ec4cba2f0d108740490e54e2c9877a1f24ba9a21;p=popcorn-js.git Fixed a few errors I made, working fine now --- diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js index 3214b77..39debcc 100644 --- a/plugins/googlemap/popcorn.googlemap.js +++ b/plugins/googlemap/popcorn.googlemap.js @@ -186,14 +186,15 @@ var googleCallback; ); - + // Function to handle tweening using a set timeout var tween = function ( rM, t ) { setTimeout( function () { // Checks whether this is a generated route or not - if( typeof options.tween === "array" ){ + + if( typeof options.tween === "object" ){ for ( var i = 0; i < rM.length; i++ ) { @@ -289,7 +290,7 @@ var googleCallback; } } - else if( typeof options.tween === "array" ){ + else if( typeof options.tween === "object" ){ // Same as the above to stop streetview maps from overflowing into one another var sView3 = sView;