diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 885ec44f6..c559b5329 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -701,9 +701,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ //If we just set maxClusterRadius to a single number, we need to create //a simple function to return that number. Otherwise, we just have to //use the function we've passed in. - if(typeof radius == "number") { - radiusFunction = function(){ return radius }; - } else if(typeof radius == "function") { + if (typeof radius === "number") { + radiusFunction = function () { return radius; }; + } else if (typeof radius === "function") { radiusFunction = radius; }