src/formats/collada/ColladaUtils.js
function (xmlNode) {
            if (!xmlNode) {
                return null;
            }

            var text = xmlNode.textContent;
            text = text.replace(/\n/gi, " ");
            text = text.replace(/\s+/gi, " ");
            text = text.trim();

            if (text.length === 0) {
                return null;
            }

            return text.split(" ");
        }
function (xmlNode) {
            if (!xmlNode) {
                return null;
            }

            var text = xmlNode.textContent;
            text = text.replace(/\n/gi, " ");
            text = text.replace(/\s+/gi, " ");
            text = text.trim();

            if (text.length === 0) {
                return null;
            }

            return text.split(" ");
        }
function ( xmlNode ) { if ( ! xmlNode ) { return null ; } var text = xmlNode . textContent ; text = text . replace ( / \n / gi , " " ) ; text = text . replace ( / \s+ / gi , " " ) ; text = text . trim ( ) ; if ( text . length === 0 ) { return null ; } return text . split ( " " ) ; }
Packs data from a node in an array.
Internal. Applications should not call this function.
@param {Node} xmlNode A node from which to extract values.
Packs data from a node in an array . Internal . Applications should not call this function .