[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* [ios] fix border's "Overlapping Curves" not recomputed when relayout #1660

Merged
Prev Previous commit
Next Next commit
* [ios] fix crash on events' copy
  • Loading branch information
cxfeng1 committed Nov 22, 2016
commit 491df3dca1fd47c1c564823c7f46527bf064c2dc
3 changes: 1 addition & 2 deletions ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ - (void)removeEvent:(NSString *)removeEventName

- (void)_initEvents:(NSArray *)events
{
NSArray *eventsCopy = [events copy];
for (NSString *addEventName in eventsCopy) {
for (NSString *addEventName in events) {
[self _addEventOnMainThread:addEventName];
}
}
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Model/WXComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ - (NSArray *)events
{
NSArray *events;
pthread_mutex_lock(&_propertyMutex);
events = _events;
events = [_events copy];
pthread_mutex_unlock(&_propertyMutex);

return events;
Expand Down