Allow initial showGrid value to be set by config.js or URL

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2804 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Brett Zamir 2014-04-09 01:50:52 +00:00
parent a506f6c02f
commit 3e14f4374f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ svgEditor.addExtension('view_grid', function() { 'use strict';
var NS = svgedit.NS,
svgdoc = document.getElementById('svgcanvas').ownerDocument,
showGrid = false,
showGrid = svgEditor.curConfig.showGrid || false,
assignAttributes = svgCanvas.assignAttributes,
hcanvas = document.createElement('canvas'),
canvBG = $('#canvasBackground'),