Added outerSVG as an alias toString
parent
8302edf2a1
commit
5784381a9f
15
src/svg.js
15
src/svg.js
|
@ -2272,15 +2272,22 @@ function arrayFirstValue(arr) {
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
// SIERRA Element.toString(): Recommend renaming this _outerSVG_ to keep it consistent with HTML & innerSVG, and also to avoid confusing it with what textContent() does. Cross-reference with innerSVG.
|
/*\
|
||||||
|
* Element.outerSVG
|
||||||
|
[ method ]
|
||||||
|
**
|
||||||
|
* Returns SVG code for the element, equivalent to HTML's `outerHTML`.
|
||||||
|
*
|
||||||
|
* See also @Element.innerSVG
|
||||||
|
= (string) SVG code for the element
|
||||||
|
\*/
|
||||||
/*\
|
/*\
|
||||||
* Element.toString
|
* Element.toString
|
||||||
[ method ]
|
[ method ]
|
||||||
**
|
**
|
||||||
* Returns SVG code for the element, equivalent to HTML's `outerHTML`
|
* See @Element.outerSVG
|
||||||
= (string) SVG code for the element
|
|
||||||
\*/
|
\*/
|
||||||
elproto.toString = toString(1);
|
elproto.outerSVG = elproto.toString = toString(1);
|
||||||
/*\
|
/*\
|
||||||
* Element.innerSVG
|
* Element.innerSVG
|
||||||
[ method ]
|
[ method ]
|
||||||
|
|
Loading…
Reference in New Issue