feature(util) getExtension -> getExt

This commit is contained in:
coderaiser 2014-05-21 05:19:10 -04:00
parent 3e1c915a78
commit b01b1be71b
3 changed files with 4 additions and 4 deletions

View file

@ -1807,7 +1807,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
this.getType = function(name, callback) {
CloudCmd.getExt(function(extensions) {
var index,
ext = Util.getExtension(name);
ext = Util.getExt(name);
ext = extensions[ext];
@ -1863,7 +1863,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
info.dirPath = Cmd.getCurrentDirPath();
info.parentDirPath = Cmd.getParentDirPath();
info.element = current;
info.ext = Util.getExtension(name);
info.ext = Util.getExt(name);
info.files = files.children,
info.filesPassive = filesPassive,
info.first = files.firstChild;

View file

@ -203,7 +203,7 @@
if (params.name) {
p = params,
extension = Util.getExtension(p.name),
extension = Util.getExt(p.name),
type = ext[extension] || 'text/plain',
encoding = '';

View file

@ -869,7 +869,7 @@
* @param pFileName
* @return Ext
*/
this.getExtension = function(name) {
this.getExt = function(name) {
var ret = '',
dot,
isStr = Util.isString(name);