From 454b51aa98707d28946f058b06b6a6efbe7dec35 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 10 May 2014 10:10:38 -0400 Subject: [PATCH] refactor(util) extendProto --- lib/util.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/util.js b/lib/util.js index 7b6a82bc..8d891e89 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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