mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
feature(util) rm bind
This commit is contained in:
parent
331385f216
commit
e0b56bc322
1 changed files with 0 additions and 13 deletions
13
lib/util.js
13
lib/util.js
|
|
@ -80,19 +80,6 @@
|
|||
return text;
|
||||
};
|
||||
|
||||
/** setting function context
|
||||
* @param {function} pFunction
|
||||
* @param {object} pContext
|
||||
*/
|
||||
this.bind = function(pFunction, pContext) {
|
||||
var lRet;
|
||||
|
||||
if (Util.isFunction(pFunction))
|
||||
lRet = pFunction.bind(pContext);
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
||||
/**
|
||||
* callback for functions(pError, pData)
|
||||
* thet moves on our parameters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue