Sha256: 022bbff150621521ca9eebf7f0a88e687958c3e451cf91c0cd7941d52217bea4

Contents?: true

Size: 935 Bytes

Versions: 10

Compression:

Stored size: 935 Bytes

Contents

/**
 * @namespace
 * @deprecated Use {@link FilePath} instead.
 */
JSDOC.Util = {
}

/**
 * @deprecated Use {@link FilePath.fileName} instead.
 */
JSDOC.Util.fileName = function(path) {
  LOG.warn("JSDOC.Util.fileName is deprecated. Use FilePath.fileName instead.");
  var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
  return path.substring(nameStart);
}

/**
 * @deprecated Use {@link FilePath.fileExtension} instead.
 */
JSDOC.Util.fileExtension = function(filename) {
  LOG.warn("JSDOC.Util.fileExtension is deprecated. Use FilePath.fileExtension instead.");
  return filename.split(".").pop().toLowerCase();
};

/**
 * @deprecated Use {@link FilePath.dir} instead.
 */
JSDOC.Util.dir = function(path) {
  LOG.warn("JSDOC.Util.dir is deprecated. Use FilePath.dir instead.");
  var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
  return path.substring(0, nameStart-1);
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sproutcore-0.9.15 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.14 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.18 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.17 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.16 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.19 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.20 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.23 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.21 jsdoc/app/lib/JSDOC/Util.js
sproutcore-0.9.22 jsdoc/app/lib/JSDOC/Util.js