mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
feature(util) rm setValue
This commit is contained in:
parent
eed5d0807b
commit
994d7af9ed
1 changed files with 0 additions and 21 deletions
21
lib/util.js
21
lib/util.js
|
|
@ -750,27 +750,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* set value to property of object, if object exist
|
||||
* @param pArgs {object, property, value}
|
||||
*/
|
||||
this.setValue = function(pArgs) {
|
||||
var lRet = false;
|
||||
|
||||
if ( Util.isObject(pArgs) ) {
|
||||
var lObj = pArgs.object,
|
||||
lProp = pArgs.property,
|
||||
lVal = pArgs.lVal;
|
||||
|
||||
if (lObj) {
|
||||
lObj[lProp] = lVal;
|
||||
lRet = true;
|
||||
}
|
||||
}
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
||||
/**
|
||||
* set timout before callback would be called
|
||||
* @param pArgs {func, callback, time}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue