refactor(util) extendProto

This commit is contained in:
coderaiser 2014-05-10 10:10:38 -04:00
parent 59dac1fe5b
commit 454b51aa98

View file

@ -225,17 +225,16 @@
};
/**
* copy pObj properties to pTargetObject
* extend proto
*
* @pTarget
* @pObj
* @obj
*/
this.extendProto = function(pObj) {
var lRet, F = function() {};
F.prototype = Util.extend({}, pObj);
lRet = new F();
this.extendProto = function(obj) {
var ret, F = function() {};
F.prototype = Util.extend({}, obj);
ret = new F();
return lRet;
return ret;
};
/** for function