tidying up

This commit is contained in:
mourner 2011-02-26 17:41:25 +02:00
parent b46e3174da
commit 66af760a22

View File

@ -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)