From 0a643e0d9edeae97b05fd1c47febbee7a60cdc5d Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Tue, 11 Jan 2011 18:24:20 -0500 Subject: [PATCH] [#257] cleanup of if/else - number check --- plugins/googlemap/popcorn.googlemap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js index 80581d8..4e13bbb 100644 --- a/plugins/googlemap/popcorn.googlemap.js +++ b/plugins/googlemap/popcorn.googlemap.js @@ -128,11 +128,10 @@ var googleCallback; options._map.setCenter(options._location); // make sure options.zoom is a number - if ( options.zoom && isNaN( options.zoom ) ) { + if ( options.zoom && typeof options.zoom !== "number" ) { options.zoom = +options.zoom; } options.zoom = options.zoom || 0; // default to 0 - options._map.setZoom( options.zoom ); } }; -- 2.43.0