Skip to content

Commit

Permalink
patchfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcperini committed Oct 17, 2014
1 parent 997b613 commit fff5257
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ An NSArray of these JSValue-valid objects:
- NSNumber
- NSDictionary
- NSArray
- NSDate
- NSData
## Generators
Expand Down
1 change: 0 additions & 1 deletion SocketIO/Source/SIOSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ typedef NSArray SIOParameterArray;
// NSNumber
// NSDictionary
// NSArray
// NSDate
// NSData
// --------------------

Expand Down
4 changes: 2 additions & 2 deletions SocketIO/Source/SIOSocket.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ - (void)emit:(NSString *)event args:(SIOParameterArray *)args {
NSString *dataString = [[NSString alloc] initWithData: arg encoding: NSUTF8StringEncoding];
[arguments addObject: [NSString stringWithFormat: @"blob('%@')", dataString]];
}
else if ([arg isKindOfClass: [NSArray class]] || [arg isKindOfClass: [NSDictionary class]] || [arg isKindOfClass: [NSDate class]]) {
[arguments addObject: [[JSValue valueWithObject: arg inContext: self.javascriptContext] description]];
else if ([arg isKindOfClass: [NSArray class]] || [arg isKindOfClass: [NSDictionary class]]) {
[arguments addObject: [[NSString alloc] initWithData: [NSJSONSerialization dataWithJSONObject: arg options: 0 error: nil] encoding: NSUTF8StringEncoding]];
}
}

Expand Down

0 comments on commit fff5257

Please sign in to comment.