File tree Expand file tree Collapse file tree 5 files changed +38
-3
lines changed
Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ var ScrollResponder = require('ScrollResponder');
3434var StaticRenderer = require ( 'StaticRenderer' ) ;
3535var TimerMixin = require ( 'react-timer-mixin' ) ;
3636
37- var isEmpty = require ( 'fbjs/lib/ isEmpty' ) ;
37+ var isEmpty = require ( 'isEmpty' ) ;
3838var merge = require ( 'merge' ) ;
3939
4040var PropTypes = React . PropTypes ;
Original file line number Diff line number Diff line change 2929'use strict' ;
3030
3131var invariant = require ( 'fbjs/lib/invariant' ) ;
32- var isEmpty = require ( 'fbjs/lib/ isEmpty' ) ;
32+ var isEmpty = require ( 'isEmpty' ) ;
3333var warning = require ( 'fbjs/lib/warning' ) ;
3434
3535function defaultGetRowData (
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const React = require('React');
3636const ReactComponentWithPureRenderMixin = require ( 'ReactComponentWithPureRenderMixin' ) ;
3737const StyleSheet = require ( 'StyleSheet' ) ;
3838
39- const emptyFunction = require ( 'emptyFunction' ) ;
39+ const emptyFunction = require ( 'fbjs/lib/ emptyFunction' ) ;
4040
4141const { PropTypes} = React ;
4242const { Directions} = NavigationLinearPanResponder ;
Original file line number Diff line number Diff line change 1+ /**
2+ * @generated SignedSource<<97ffcebc9ae390e734026a4f3964bff6>>
3+ *
4+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5+ * !! This file is a check-in of a static_upstream project! !!
6+ * !! !!
7+ * !! You should not modify this file directly. Instead: !!
8+ * !! 1) Use `fjs use-upstream` to temporarily replace this with !!
9+ * !! the latest version from upstream. !!
10+ * !! 2) Make your changes, test them, etc. !!
11+ * !! 3) Use `fjs push-upstream` to copy your changes back to !!
12+ * !! static_upstream. !!
13+ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+ *
15+ * @providesModule isEmpty
16+ */
17+
18+ /**
19+ * Mimics empty from PHP.
20+ */
21+ function isEmpty ( obj ) {
22+ if ( Array . isArray ( obj ) ) {
23+ return obj . length === 0 ;
24+ } else if ( typeof obj === 'object' ) {
25+ for ( var i in obj ) {
26+ return false ;
27+ }
28+ return true ;
29+ } else {
30+ return ! obj ;
31+ }
32+ }
33+
34+ module . exports = isEmpty ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ var sharedBlacklist = [
1919
2020 // fbjs forks:
2121 'node_modules/fbjs/lib/Map.js' ,
22+ 'node_modules/fbjs/lib/isEmpty.js' ,
2223
2324 / w e b s i t e \/ n o d e _ m o d u l e s \/ .* / ,
2425
You can’t perform that action at this time.
0 commit comments