Support non Objective-J objects in CPUndoManager's no-op check for auto undo.

This commit is contained in:
Alexander Ljungberg authored and Ross Boucher committed 2010-06-16 08:50:34 -07:00
1 parent 685c3c9853
commit c807358216
1 file changed
+1 -1
+1 -1
View File
@@ -729,7 +729,7 @@ if (_currentGroup == nil)
// Don't add no-ops to the undo stack.
var before = [aChange valueForKey:CPKeyValueChangeOldKey],
after = [aChange valueForKey:CPKeyValueChangeNewKey];
if (before === after || [before isEqual:after])
if (before === after || (after !== nil && after.isa && [before isEqual:after]))
return;
[[self prepareWithInvocationTarget:anObject]