Skip to content

Commit

Permalink
Assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeabdullah committed Jul 21, 2010
1 parent 4d9ca24 commit 27cf398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions KSHTMLWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ - (void)writeLinkToStylesheet:(NSString *)href

- (void)writeJavascriptWithSrc:(NSString *)src;
{
NSParameterAssert(src);

[self openTag:@"script"];
[self writeAttribute:@"type" value:@"text/javascript"]; // in theory, HTML5 pages could omit this
[self writeAttribute:@"src" value:src];
Expand Down

0 comments on commit 27cf398

Please sign in to comment.