code: function (url) {
                  if (!url)
                      return "";
  
                  var urlParts = url.split("/"),
                      newPath = "";
  
                  for (var i = 0, len = urlParts.length; i < len; i++) {
                      var part = urlParts[i];
  
                      if (!part || part.length === 0
                          || part.indexOf(":") != -1
                          || part === "."
                          || part === ".."
                          || part === "null"
                          || part === "undefined") {
                          continue;
                      }
  
                      if (newPath.length !== 0) {
                          newPath = newPath + "/";
                      }
  
                      newPath = newPath + part;
                  }
  
                  return newPath;
              }
docs: Returns the path component of a specified URL.
  @param {String} url The URL from which to determine the path component.
  @returns {String} The path component, or the empty string if the specified URL is null, undefined
  or empty.