Skip to content

Commit

Permalink
Changed the way command-oriented settings are created when nothing ex…
Browse files Browse the repository at this point in the history
…ists in the Plist file
  • Loading branch information
Michael Nachbaur committed Sep 14, 2009
1 parent f464e33 commit 968da29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iphone/Classes/PhoneGapDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ -(id) getCommandInstance:(NSString*)className
NSDictionary* classSettings;
classSettings = [settings objectForKey:className];

if (classSettings)
obj = [[NSClassFromString(className) alloc] initWithWebView:webView settings:classSettings];
else
obj = [[NSClassFromString(className) alloc] initWithWebView:webView];
if (classSettings == nil)
classSettings = [NSDictionary dictionary];

obj = [[NSClassFromString(className) alloc] initWithWebView:webView settings:classSettings];

[commandObjects setObject:obj forKey:className];
[obj release];
Expand Down

0 comments on commit 968da29

Please sign in to comment.