TreeController.prototype.getPathElements = function()

in src/main/resources/SLING-INF/libs/sling/resource-editor/static/js/tree/TreeController.js [171:177]


	TreeController.prototype.getPathElements = function(resourcePath){
		var pathSuffix = ".html";
		var pathEndsWithPathSuffix = resourcePath.substring(resourcePath.length-pathSuffix.length) == pathSuffix;
		var resourcePathWithoutSuffix = (pathEndsWithPathSuffix) ? resourcePath.substring(0,resourcePath.length-pathSuffix.length) : resourcePath; 
		var currentNodePath = this.mainController.encodeToHTML(resourcePathWithoutSuffix);
		return currentNodePath.substring(1).split("/");
	}