From c5d602bd6dca4cd448d440f07d295299c04adf68 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Wed, 24 Aug 2011 01:35:33 -0400 Subject: [PATCH] Removed mistaken exception, it's okay if didChangeValueForKey: is called without willChangeValueForKey: --- Foundation/CPKeyValueObserving.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/CPKeyValueObserving.j b/Foundation/CPKeyValueObserving.j index b73563066..e68657a73 100644 --- a/Foundation/CPKeyValueObserving.j +++ b/Foundation/CPKeyValueObserving.j @@ -775,7 +775,7 @@ var kvoNewAndOld = CPKeyValueObservingOptionNew | CPKeyValueObservingOpti else { if (!changes) - [CPException raise:@"CPKeyValueObservingException" reason:@"'didChange...' message called without prior call of 'willChange...'"]; + return; [changes removeObjectForKey:CPKeyValueChangeNotificationIsPriorKey];