mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-16 10:10:49 -04:00
initial commit for GitHub
This commit is contained in:
commit
2e423d9517
155 changed files with 31749 additions and 0 deletions
32
jsdoc_toolkit-2.3.3-beta/app/lib/JSDOC/Util.js
Normal file
32
jsdoc_toolkit-2.3.3-beta/app/lib/JSDOC/Util.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
/**
|
||||
* @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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue