From cd620b0c5a3160ceb51ff42b54804851fef3825b Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 14 Mar 2013 17:32:08 +0000 Subject: [PATCH] Fixed: more precise array controller insert index test. Refs #1856. --- AppKit/CPArrayController.j | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index 5cf53d08f..5ffd31e19 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -914,11 +914,10 @@ var newObject = [self automaticallyPreparesContent] ? [self newObject] : [self _defaultNewObject], lastSelectedIndex = [_selectionIndexes lastIndex]; - if (lastSelectedIndex != CPNotFound) + if (lastSelectedIndex !== CPNotFound) [self insertObject:newObject atArrangedObjectIndex:lastSelectedIndex]; else [self addObject:newObject]; - } /*!