From b200286db76ec263870ec2c7403ddfacf15c249f Mon Sep 17 00:00:00 2001 From: Xhacker Liu Date: Mon, 5 Jan 2015 22:43:35 -0800 Subject: [PATCH] [Fix #17] messageSubscribers should be mutable array. --- quark-shell/QSHWebViewDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quark-shell/QSHWebViewDelegate.m b/quark-shell/QSHWebViewDelegate.m index 4c92bd8..a1cdfbd 100644 --- a/quark-shell/QSHWebViewDelegate.m +++ b/quark-shell/QSHWebViewDelegate.m @@ -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]; } }