Permalink
Browse files

Src may be nil; it's handled in support classes

  • Loading branch information...
1 parent 3a9930c commit b69566516c691ee0545536ac0dc6f970216a4ce1 Dan Wood committed Apr 11, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 KSHTMLWriter.m
View
@@ -258,10 +258,8 @@ - (void)writeJavascriptWithSrc:(NSString *)src encoding:(NSStringEncoding)encodi
[self writeJavascriptWithSrc:src charset:charset];
}
-- (void)writeJavascriptWithSrc:(NSString *)src charset:(NSString *)charset;
-{
- NSParameterAssert(src);
-
+- (void)writeJavascriptWithSrc:(NSString *)src charset:(NSString *)charset; // src may be nil
+{
if (charset) [self pushAttribute:@"charset" value:charset];
[self startJavascriptElementWithSrc:src];
[self endElement];

0 comments on commit b695665

Please sign in to comment.