From 1e392814235cf3be4087b14dc7a4d2d926d6d691 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Fri, 5 Sep 2014 14:46:20 +0100 Subject: [PATCH] Fixed: CPBinder unbindAllForObject did not work. Previously, calling CPBinder unbindObjectForKey would not actually unbind each of the bindings because it was passing the wrong object to the unbind method which would silently ignore the issue. The commit passes the correct parameter to allow unbinding to actually take place. Fixes #2197. --- AppKit/CPKeyValueBinding.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPKeyValueBinding.j b/AppKit/CPKeyValueBinding.j index 06ce850b7..0377da75a 100644 --- a/AppKit/CPKeyValueBinding.j +++ b/AppKit/CPKeyValueBinding.j @@ -116,7 +116,7 @@ var CPBindingOperationAnd = 0, count = allKeys.length; while (count--) - [anObject unbind:[bindings objectForKey:allKeys[count]]]; + [anObject unbind:allKeys[count]]; [bindingsMap removeObjectForKey:[anObject UID]]; }