From 66af760a22f00e678add998611de83107c16a0b0 Mon Sep 17 00:00:00 2001 From: mourner Date: Sat, 26 Feb 2011 17:41:25 +0200 Subject: [PATCH] tidying up --- src/layer/vector/Path.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layer/vector/Path.js b/src/layer/vector/Path.js index 1d4344ee..ee6e2903 100644 --- a/src/layer/vector/Path.js +++ b/src/layer/vector/Path.js @@ -1,11 +1,12 @@ L.Path = L.Class.extend({ statics: (function() { - var svgns = 'http://www.w3.org/2000/svg'; + var svgns = 'http://www.w3.org/2000/svg', + ce = 'createElementNS'; return { SVG_NS: svgns, - SVG: !!(document.createElementNS && document.createElementNS(svgns, 'svg').createSVGRect), + SVG: !!(document[ce] && document[ce](svgns, 'svg').createSVGRect), // how much to extend the clip area around the map view // (relative to its size, e.g. 0.5 is half the screen in each direction)