Fixed: more precise array controller insert index test.

Refs #1856.
This commit is contained in:
Alexander Ljungberg committed 2013-03-14 17:32:08 +00:00
1 parent 4dd4d17ef9
commit be2234113b
1 file changed
+1 -2
+1 -2
View File
@@ -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];
}
/*!