fix(dom) isSVG ie10: toString.call(svgNode) -> svgNode.toString()

This commit is contained in:
coderaiser 2014-03-27 03:43:30 -04:00
parent 2bdb1df5dc
commit 57f5567709

View file

@ -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;