1. José Manuel Sánchez Peñarroja
  2. BMF

Commits

José Manuel Sánchez Peñarroja  committed 58d2a89

Fixed issue

  • Participants
  • Parent commits 35a9145
  • Branches master

Comments (0)

Files changed (4)

File Example/Example.xcworkspace/xcuserdata/josanchez.xcuserdatad/UserInterfaceState.xcuserstate

  • Ignore whitespace
Binary file modified.

File bmf/ios/view controllers/BMFCollectionViewController.m

View file
  • Ignore whitespace
 	__weak BMFCollectionViewController *wself = self;
 	
 	[[RACObserve(self, dataSource) scanWithStart:nil reduce:^id(id running, id next) {
-		[wself removeBehavior:running];
+		if (running) [wself removeBehavior:running];
 		return next;
 	}] subscribeNext:^(id x) {
 		wself.collectionView.dataSource = x;

File bmf/ios/view controllers/BMFMapViewController.m

View file
  • Ignore whitespace
 	
 	[[[RACObserve(self, dataSource) scanWithStart:nil reduce:^id(id running, id next) {
 		@strongify(self);
-		[self.BMF_proxy removeDestinationObject:running];
+		if (running) [self.BMF_proxy removeDestinationObject:running];
 		return next;
 	}] filter:^BOOL(id value) {
 		return value!=nil;

File bmf/ios/view controllers/BMFTableViewController.m

View file
  • Ignore whitespace
 	@weakify(self);
 	[[RACObserve(self, dataSource) scanWithStart:nil reduce:^id(id running, id next) {
 		@strongify(self);
-		[self removeBehavior:running];
+		if (running) [self removeBehavior:running];
 		return next;
 	}] subscribeNext:^(id x) {
 		@strongify(self);