Allow class to be used with +themeForView, fix to image load notification

This commit is contained in:
Aparajita Fishman committed 2011-05-05 08:06:31 -04:00
1 parent a0a7b126ab
commit 9c181cc9c9
2 files changed
+14 -7

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
return;
if ([_image delegate] === self)
[[CPNotificationCenter defaultCenter] removeObserver:_image name:CPImageDidLoadNotification object:_image];
[[CPNotificationCenter defaultCenter] removeObserver:self name:CPImageDidLoadNotification object:_image];
_image = anImage;
_flags |= _CPImageAndTextViewImageChangedFlag;