mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(dom) getById: rm pElement
This commit is contained in:
parent
ecf023854e
commit
77e539b225
1 changed files with 3 additions and 4 deletions
|
|
@ -297,11 +297,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
|
||||
/**
|
||||
* Function search element by id
|
||||
* @param Id - className
|
||||
* @param pElement - element
|
||||
* @param Id - id
|
||||
*/
|
||||
this.getById = function(pId, pElement) {
|
||||
return (pElement || document).getElementById(pId);
|
||||
this.getById = function(pId) {
|
||||
return document.getElementById(pId);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue