feature(dom) add getCurrentOwner

This commit is contained in:
coderaiser 2014-01-20 06:03:18 -05:00
parent cc59637307
commit 5a802d62cb

View file

@ -1000,6 +1000,19 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
return lRet;
};
/**
* @pCurrentFile
*/
this.getCurrentOwner = function(pCurrentFile) {
var ret,
current = pCurrentFile || this.getCurrentFile(),
owner = this.getByClass('owner', current)[0];
ret = owner.textContent;
return ret;
};
/**
* unified way to get current file content
*