JSLint (minor)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2682 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Brett Zamir 2014-02-10 13:50:55 +00:00
parent 645ab15976
commit 05dc118abe
1 changed files with 2 additions and 1 deletions

View File

@ -1502,6 +1502,7 @@
} }
}; };
var supportsNonSS;
var updateWireFrame = function() { var updateWireFrame = function() {
// Test support // Test support
if (supportsNonSS) {return;} if (supportsNonSS) {return;}
@ -3855,7 +3856,7 @@
// Use this SVG elem to test vectorEffect support // Use this SVG elem to test vectorEffect support
var testEl = paintBox.fill.rect.cloneNode(false); var testEl = paintBox.fill.rect.cloneNode(false);
testEl.setAttribute('style', 'vector-effect:non-scaling-stroke'); testEl.setAttribute('style', 'vector-effect:non-scaling-stroke');
var supportsNonSS = (testEl.style.vectorEffect === 'non-scaling-stroke'); supportsNonSS = (testEl.style.vectorEffect === 'non-scaling-stroke');
testEl.removeAttribute('style'); testEl.removeAttribute('style');
var svgdocbox = paintBox.fill.rect.ownerDocument; var svgdocbox = paintBox.fill.rect.ownerDocument;
// Use this to test support for blur element. Seems to work to test support in Webkit // Use this to test support for blur element. Seems to work to test support in Webkit