function _getRange(name, range) {
      if (range === true) {
        range = name.match(/\.\.\d+$/);
        if (range) {
          name = name.substring(0, name.length - range[0].length);
          range = parseInt(range[0].substring(2));
        }
      }
      if (!range) {
        return [name];
      }
      var start = name.match(/\d+$/);
      var res = [];
      var i;
      if (start) {
        name = name.substring(0, name.length - start[0].length);
        for (i = parseInt(start); i <= range; i++) {
          res.push(name + i);
        }
      } else {
        res.push(name);
        for (i = 2; i <= range; i++) {
          res.push(name + i);
        }
      }
      return res;
    }
Recursive helper function converts a view-name and a range to a series
of view-names (e.g. [child1, child2, child3, ...]).
@private