Updates from Mon Feb 22

- [ReactNative] remove docs and website from fbobjc and improve oss_export | Spencer Ahrens
- [ReactNative] Bring back ReactKit proj files | Spencer Ahrens
- [React-Native] Update jstransform/esprima | Christoph Pojer
This commit is contained in:
Christopher Chedeau
2015-02-25 12:36:51 -08:00
parent 72ed849e35
commit 1f8740a9f8
14 changed files with 82 additions and 192 deletions

View File

@@ -2,7 +2,6 @@
#import "RCTTiming.h"
#import "RCTAssert.h"
#import "RCTBridge.h"
#import "RCTLog.h"
#import "RCTSparseArray.h"
@@ -12,7 +11,7 @@
@property (nonatomic, strong, readonly) NSDate *target;
@property (nonatomic, assign, readonly) BOOL repeats;
@property (nonatomic, copy, readonly) NSNumber *callbackID;
@property (nonatomic, strong, readonly) NSNumber *callbackID;
@property (nonatomic, assign, readonly) NSTimeInterval interval;
@end
@@ -173,12 +172,12 @@
if (jsSchedulingOverhead < 0) {
RCTLogWarn(@"jsSchedulingOverhead (%ims) should be positive", (int)(jsSchedulingOverhead * 1000));
}
NSTimeInterval targetTime = interval - jsSchedulingOverhead;
if (interval < 0.018) { // Make sure short intervals run each frame
interval = 0;
}
RCTTimer *timer = [[RCTTimer alloc] initWithCallbackID:callbackID
interval:interval
targetTime:targetTime