Advertisement
Guest User

Untitled

a guest
May 30th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. WordManager.prototype.processDomElement_ = function(domElement) {
  2. for (var i = 0; i < domElement.childNodes.length; i++) {
  3. if (domElement.childNodes[i].hasChildNodes() > 0) {
  4. this.processDomElement_(domElement.childNodes[i]);
  5. } else {
  6. this.processWords_(domElement.childNodes[i].nodeValue);
  7. console.log("AAA", domElement, domElement.childNodes[i].nodeValue);
  8. }
  9. }
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement