mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-26 12:20:43 +00:00
committed by
Antoine Mercadal
parent
21de08506c
commit
cd620b0c5a
@@ -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];
|
||||
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user