This commit is contained in:
Trevor Parscal 2012-03-09 22:45:22 +00:00
parent 4bc7dbbe5e
commit ce824d6299
Notes: Trevor Parscal 2012-03-09 22:45:22 +00:00

View file

@ -4,10 +4,15 @@
* All classes and functions will be attached to this object to keep the global namespace clean.
*/
ve.ce = {
};
ve.ce.getDOMText = function( elem ) {
/**
* Gets the plain text of a DOM element.
*
* @static
* @method
* @param {HTMLElement} elem DOM element to get the plan text contents of
* @returns {String} Plain text contents of DOM element
*/
'getDOMText': function( elem ) {
var nodeType = elem.nodeType,
ret = '';
@ -29,4 +34,5 @@ ve.ce.getDOMText = function( elem ) {
}
return ret;
}
};