mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 01:38:26 +00:00
Call copy method to avoid a potential issue for an NSString property
Summary: According to rnystrom 's comment on #125 , we leave only two small changes in this PR. 1. Call copy method to avoid a potential issue for an `NSString` property. 2. fix a typo. close #125 - [x] All tests pass. Demo project builds and runs. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/131 Differential Revision: D4095492 Pulled By: rnystrom fbshipit-source-id: b162842a38850c826685efd0746022daabe9d2b8
This commit is contained in:
parent
a3d5c14a87
commit
eca0205c26
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
/**
|
||||
The IGListDiffable protocol provides the base methods needed to compare the identity and equality of two objects using
|
||||
one of the IGKAlgorithm functions.
|
||||
one of the IGListDiff functions.
|
||||
*/
|
||||
@protocol IGListDiffable
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
IGParameterAssert(configureBlock != nil);
|
||||
IGParameterAssert(sizeBlock != nil);
|
||||
if (self = [super init]) {
|
||||
_nibName = nibName;
|
||||
_nibName = [nibName copy];
|
||||
_bundle = bundle;
|
||||
_configureBlock = [configureBlock copy];
|
||||
_sizeBlock = [sizeBlock copy];
|
||||
|
|
|
|||
Loading…
Reference in a new issue