Skip to content

Commit

Permalink
Move svg-smil test to feature-detects/svg-smil.js
Browse files Browse the repository at this point in the history
  • Loading branch information
seutje committed Sep 21, 2012
1 parent 1b2a255 commit 044266d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions feature-detects/svg-smil.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

// SVG SMIL animation
Modernizr.addTest('smil', function() {
return !!document.createElementNS &&
/SVGAnimate/.test(toString.call(document.createElementNS('http://www.w3.org/2000/svg', 'animate')));
});
5 changes: 0 additions & 5 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,6 @@ window.Modernizr = (function( window, document, undefined ) {
return (div.firstChild && div.firstChild.namespaceURI) == ns.svg;
};

// SVG SMIL animation
tests['smil'] = function() {
return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate')));
};

/*>>webforms*/
// input features and input types go directly onto the ret object, bypassing the tests loop.
// Hold this guy to execute in a moment.
Expand Down

0 comments on commit 044266d

Please sign in to comment.