mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(dom) isSVG ie10: toString.call(svgNode) -> svgNode.toString()
This commit is contained in:
parent
2bdb1df5dc
commit
57f5567709
1 changed files with 3 additions and 2 deletions
|
|
@ -270,14 +270,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
* check SVG SMIL animation support
|
||||
*/
|
||||
this.isSVG = function() {
|
||||
var rect, ret, svgNode,
|
||||
var rect, ret, svgNode, name,
|
||||
create = document.createElementNS,
|
||||
SVG_URL = 'http://www.w3.org/2000/svg';
|
||||
|
||||
if (create) {
|
||||
create = create.bind(document);
|
||||
svgNode = create(SVG_URL, 'animate');
|
||||
ret = /SVGAnimate/.test(toString.call(svgNode));
|
||||
name = svgNode.toString();
|
||||
ret = /SVGAnimate/.test(name);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue