Content deleted Content added
Mike Dillon (talk | contribs) enhance the appendChild method of the DOM nodes created by easyDOM to automatically wrap string in text nodes |
Mike Dillon (talk | contribs) m don't try to be too tricky |
||
Line 10:
// Make appendChild automatically wrap string in a text node
var
elem.appendChild = function (child) {
if (typeof child == stringType) {
child = document.createTextNode(child);
}
};
|