From 76da7466ec3b0467cd1572bcab9b415675934d90 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Tue, 16 Feb 2010 13:50:06 -0800 Subject: [PATCH] Fix for CPDictionary CPFastEnumeration. Reviewed by me. --- Foundation/CPDictionary.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/CPDictionary.j b/Foundation/CPDictionary.j index 105b2c711..3844274bb 100755 --- a/Foundation/CPDictionary.j +++ b/Foundation/CPDictionary.j @@ -543,9 +543,9 @@ var keys = [self allKeys], index = count, - objects = []; + objects = new Array(count); - while (count--) + while (index--) objects[index] = [self objectForKey:keys[index]]; aState.items0 = objects;