Skip to content

Commit

Permalink
[Fix #17] messageSubscribers should be mutable array.
Browse files Browse the repository at this point in the history
  • Loading branch information
xhacker committed Jan 6, 2015
1 parent 9241360 commit b200286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quark-shell/QSHWebViewDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ - (void)subscribeMessage:(NSString *)name withCallback:(WebScriptObject *)callba
[self.messageSubscribers[name] addObject:callback];
}
else {
self.messageSubscribers[name] = @[callback];
self.messageSubscribers[name] = [NSMutableArray arrayWithObject:callback];
}
}

Expand Down

0 comments on commit b200286

Please sign in to comment.