mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Fix object initialization
Summary: self should be assigned to result of [super init] Reviewed By: shergin Differential Revision: D15295275 fbshipit-source-id: 722ae9ad3f9fb8ee3a86892bfb5b2a4cb7b8c708
This commit is contained in:
committed by
Facebook Github Bot
parent
6001acb319
commit
55db1d05fb
@@ -18,7 +18,7 @@
|
||||
|
||||
- (instancetype)initWithSurface:(RCTSurface *)surface
|
||||
{
|
||||
if (self == [super init]) {
|
||||
if (self = [super init]) {
|
||||
_surface = surface;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user