From ec4cba2f0d108740490e54e2c9877a1f24ba9a21 Mon Sep 17 00:00:00 2001 From: David Seifried Date: Tue, 17 May 2011 12:13:20 -0400 Subject: [PATCH] Fixed a few errors I made, working fine now --- plugins/googlemap/popcorn.googlemap.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.43.0