Fixed: more precise array controller insert index test.

Refs #1856.
This commit is contained in:
Alexander Ljungberg
2013-03-14 13:49:42 -07:00
committed by Antoine Mercadal
parent 21de08506c
commit cd620b0c5a
+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];
}
/*!