Commit c4cb6ab
committed
The declared interface for WVJB expected data to be an
Drop JSONKit. It's 2013!id. However, the implementation assumed NSDictionary in a bunch of places. Furthermore, messages received from JS by ObjC were previously always forced into an NSDictionary but javascript did not replace null data packets with {}. This patch introduces consistency in all of these cases, assuming data to be id everywhere, and never changing the value of data.1 parent fa0ca36 commit c4cb6ab
2 files changed
Lines changed: 10 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 94 | + | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| |||
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
191 | | - | |
192 | | - | |
| 188 | + | |
193 | 189 | | |
194 | 190 | | |
195 | 191 | | |
| |||
199 | 195 | | |
200 | 196 | | |
201 | 197 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 198 | + | |
206 | 199 | | |
207 | | - | |
208 | 200 | | |
209 | 201 | | |
210 | 202 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 203 | + | |
216 | 204 | | |
217 | 205 | | |
218 | 206 | | |
| |||
0 commit comments