Skip to content

Commit

Permalink
straight boolean return value on svg test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 16, 2010
1 parent 07ba578 commit 63dace2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,7 @@ window.Modernizr = (function(window,doc,undefined){

// thanks to Erik Dahlstrom
tests[svg] = function(){
return doc.createElementNS && doc.createElementNS( "http://www.w3.org/2000/svg", "svg").createSVGRect;
//return (window.SVGAngle || doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
return doc.createElementNS && !!doc.createElementNS( "http://www.w3.org/2000/svg", "svg").createSVGRect;
};

// thanks to F1lt3r and lucideer
Expand Down

0 comments on commit 63dace2

Please sign in to comment.