From e5f7cac36f0e1aaa5384a661fef0b2fa25abf2fb Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Thu, 11 Dec 2008 16:55:02 +0100 Subject: [PATCH] Avoid shadowing named functions. --- src/lang/object.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lang/object.js b/src/lang/object.js index 124596c..5bf0860 100644 --- a/src/lang/object.js +++ b/src/lang/object.js @@ -48,17 +48,17 @@ } function keys(object) { - var keys = []; + var results = []; for (var property in object) - keys.push(property); - return keys; + results.push(property); + return results; } function values(object) { - var values = []; + var results = []; for (var property in object) - values.push(object[property]); - return values; + results.push(object[property]); + return results; } function clone(object) {