]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fixed a few errors I made, working fine now
authorDavid Seifried <david.c.seifried@gmail.com>
Tue, 17 May 2011 16:13:20 +0000 (12:13 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Tue, 17 May 2011 16:13:20 +0000 (12:13 -0400)
plugins/googlemap/popcorn.googlemap.js

index 3214b770420109dd5ccfe3f2741e1e844361c9f7..39debcc4697aa322aa86e60027a66e216cf0f834 100644 (file)
@@ -186,14 +186,15 @@ var googleCallback;
 \r
 \r
                                 );\r
-                                         \r
+      \r
                                 //  Function to handle tweening using a set timeout\r
                                 var tween = function ( rM, t ) {\r
 \r
                                   setTimeout( function () {\r
           \r
                                     //  Checks whether this is a generated route or not\r
-                                    if( typeof options.tween === "array" ){\r
+\r
+                                    if( typeof options.tween === "object" ){\r
 \r
                                       for ( var i = 0; i < rM.length; i++ ) {\r
 \r
@@ -289,7 +290,7 @@ var googleCallback;
 \r
                                   }\r
                                 }\r
-                                else if( typeof options.tween === "array" ){\r
+                                else if( typeof options.tween === "object" ){\r
 \r
                                   //  Same as the above to stop streetview maps from overflowing into one another\r
                                   var sView3 = sView;\r