Skip to content

Commit 478ea36

Browse files
committed
fix build
1 parent 18d5224 commit 478ea36

File tree

2 files changed

+4
-27
lines changed

2 files changed

+4
-27
lines changed

build/connect.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ var getEventsFromDefinition = function getEventsFromDefinition(def) {
101101
exports.default = function () {
102102
var dataOrFn = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];
103103
return function (WrappedComponent) {
104-
var FirebaseConnect = function (_React$Component) {
105-
_inherits(FirebaseConnect, _React$Component);
104+
var FirebaseConnect = function (_Component) {
105+
_inherits(FirebaseConnect, _Component);
106106

107107
function FirebaseConnect(props, context) {
108108
_classCallCheck(this, FirebaseConnect);
@@ -177,7 +177,7 @@ exports.default = function () {
177177
}]);
178178

179179
return FirebaseConnect;
180-
}(_react2.default.Component);
180+
}(_react.Component);
181181

182182
FirebaseConnect.contextTypes = {
183183
store: function store() {

source/connect.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
1-
<<<<<<< HEAD
2-
import React, {PropTypes} from 'react'
3-
=======
4-
import React, {Component} from 'react'
5-
>>>>>>> cb42bba950e45b7b67bfd206c8d9f8440ce429f5
1+
import React, {Component, PropTypes} from 'react'
62
import {watchEvents, unWatchEvents} from './actions'
73

84
const defaultEvent = {
95
path: '',
106
type: 'value'
117
}
128

13-
<<<<<<< HEAD
149
const fixPath = (path) => ((path.substring(0,1) == '/') ? '': '/') + path
1510

1611
const isEqualArrays = (a, b) => a.length == b.length && a.every((v,i) => v === b[i])
1712

18-
=======
19-
>>>>>>> cb42bba950e45b7b67bfd206c8d9f8440ce429f5
2013
const ensureCallable = maybeFn =>
2114
typeof maybeFn === 'function' ? maybeFn : _ => maybeFn
2215

23-
<<<<<<< HEAD
2416
const flatMap = arr => (arr && arr.length) ? arr.reduce((a, b) => a.concat(b)) : []
25-
=======
26-
const flatMap = arr => (arr && arr.length) ? arr.reduce((a, b) => a.concat(b)) : []
27-
>>>>>>> cb42bba950e45b7b67bfd206c8d9f8440ce429f5
2817

2918
const createEvents = ({type, path}) => {
3019
switch (type) {
@@ -72,11 +61,7 @@ const getEventsFromDefinition = def => flatMap(def.map(path => {
7261
}))
7362

7463
export default (dataOrFn = []) => WrappedComponent => {
75-
<<<<<<< HEAD
76-
class FirebaseConnect extends React.Component {
77-
=======
7864
class FirebaseConnect extends Component {
79-
>>>>>>> cb42bba950e45b7b67bfd206c8d9f8440ce429f5
8065

8166
constructor (props, context) {
8267
super(props, context)
@@ -102,7 +87,6 @@ export default (dataOrFn = []) => WrappedComponent => {
10287
watchEvents(firebase, dispatch, this._firebaseEvents)
10388
}
10489

105-
<<<<<<< HEAD
10690
componentWillReceiveProps(nextProps) {
10791
const {firebase, dispatch} = this.context.store
10892

@@ -115,24 +99,17 @@ export default (dataOrFn = []) => WrappedComponent => {
11599

116100
this._pathsToListen = newPathsToListen;
117101

118-
=======
119-
componentWillUnmount () {
120-
const {firebase} = this.context.store
121-
>>>>>>> cb42bba950e45b7b67bfd206c8d9f8440ce429f5
122102
unWatchEvents(firebase, this._firebaseEvents)
123103

124104
this._firebaseEvents = getEventsFromDefinition(this._pathsToListen)
125105
watchEvents(firebase, dispatch, this._firebaseEvents)
126106
}
127107

128-
<<<<<<< HEAD
129108
componentWillUnmount () {
130109
const {firebase} = this.context.store
131110
unWatchEvents(firebase, this._firebaseEvents)
132111
}
133112

134-
=======
135-
>>>>>>> cb42bba950e45b7b67bfd206c8d9f8440ce429f5
136113
render () {
137114
return (
138115
<WrappedComponent

0 commit comments

Comments
 (0)