Skip to content

Commit

Permalink
fixed issues with query selector and FF-31.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Dec 6, 2016
1 parent 47d1a7c commit 3e5321b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/client/components/map/leaflet/snapshot/GrabMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ let GrabLMap = React.createClass({
var leftString = window.getComputedStyle(this.mapDiv).getPropertyValue("left");

// get all the informations needed to snap svg before
let obejctDiv = this.mapDiv.querySelector(":scope > .leaflet-map-pane .leaflet-objects-pane");
let svgs = obejctDiv && obejctDiv.getElementsByTagName("svg");
let mapPanes = this.mapDiv.getElementsByClassName("leaflet-map-pane");
let mapPane = mapPanes && mapPanes[0];
let objectPanes = mapPane && mapPane.getElementsByClassName("leaflet-objects-pane");
let objectDiv = objectPanes && objectPanes[0];
let svgs = objectDiv && objectDiv.getElementsByTagName("svg");
let svg = svgs && svgs[0];
let svgH;
let svgW;
Expand Down

0 comments on commit 3e5321b

Please sign in to comment.