Changeset 2557
- Timestamp:
- 04/20/05 18:04:09 (4 years ago)
- Files:
-
- trunk/JVStyleView.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/JVStyleView.m
r2555 r2557 260 260 261 261 - (void) showTopic:(NSString *) topic { 262 if( ! topic ) { 263 topic = @"<span style=\"color: grey\">(no chat topic is set)</span>"; 264 } 262 if( ! topic ) return; // don't show anything if there is no topic 263 265 264 if( _webViewReady ) { 266 265 #ifdef WebKitVersion146 … … 308 307 #endif 309 308 if( topicShowing ) [self hideTopic]; 310 else [self showTopic:topic]; 309 else [self showTopic:topic]; 311 310 } else { 312 311 [self performSelector:_cmd withObject:topic afterDelay:0.]; … … 317 316 318 317 - (BOOL) appendChatMessage:(JVChatMessage *) message { 319 if( ! _webViewReady ) { 320 [self performSelector:_cmd withObject:message afterDelay:0.]; 321 return; 322 } 318 if( ! _webViewReady ) return; // don't schedule this to fire later since the transcript will be processed 323 319 324 320 NSString *result = nil; … … 351 347 352 348 - (BOOL) appendChatTranscriptElement:(id <JVChatTranscriptElement>) element { 353 if( ! _webViewReady ) { 354 [self performSelector:_cmd withObject:element afterDelay:0.]; 355 return; 356 } 349 if( ! _webViewReady ) return; // don't schedule this to fire later since the transcript will be processed 357 350 358 351 NSString *result = nil;
