feature(client) add getType

This commit is contained in:
coderaiser 2013-11-20 13:11:16 +00:00
parent 2b35b44291
commit 0b77463f64

View file

@ -2083,6 +2083,21 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
return lRet;
};
this.getType = function(name, callback) {
CloudCmd.getExt(function(extensions) {
var str, index,
ext = Util.getExtension(name);
ext = extensions[ext];
if (ext) {
index = ext.indexOf('/') + 1;
ext = ext.substr(index);
}
Util.exec(callback, ext);
});
};
},
DOMTree = Util.extendProto(DOMTreeProto),