code: function(str) {
      var T = this, k, child, ret = [];
      if (str === undefined) {
        str = "";
      }
      if (T === undefined) {
        return [];
      }
      if (T.words > 0) {
        ret.push(str);
      }
      for (k in T.children) {
        if (T.children.hasOwnProperty(k)) {
          child = T.children[k];
          ret = ret.concat(child.getAllWords(str + k));
        }
      }
      return ret;
    }
docs: /*
  Get all words in the dictionary
  
  @method getAllWords
  @param {String} str Prefix of current word
  @return {Array} Array of words in the dictionary