code: function(nPath){
          var a = [];
          if (OpenLayers.Util.isArray(nPath)) {
              var path = nPath.slice();
              while (path.length > 0) {
                  a.push(path.slice());
                  path.pop();
              }
              a.reverse();
          }
          return a;
      }
docs: Function: decomposeNestingPath
  Takes a nestingPath like "a/b/c" and decomposes it into subpaths:
  "a", "a/b", "a/b/c"
  
  Parameters:
  nPath  - {Array} the nesting path
  
  Returns:
  Array({String}) Array with subpaths, or empty array if there is nothing
  to decompose