mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 09:22:03 +00:00
Support non Objective-J objects in CPUndoManager's no-op check for auto undo.
This commit is contained in:
1 parent
685c3c9853
commit
c807358216
1 file changed
+1
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user