Minor stuff
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {findDOMNode} from 'react-dom';
|
||||
import {formatPrice} from '../lib/helpers';
|
||||
import {loadListing} from '../lib/api';
|
||||
|
||||
@@ -98,12 +98,12 @@ export default class Listings extends React.Component {
|
||||
}
|
||||
|
||||
attachScrollListener () {
|
||||
const listings = ReactDOM.findDOMNode(this.refs.listings);
|
||||
const listings = findDOMNode(this.refs.listings);
|
||||
listings.parentNode.addEventListener('scroll', this.handleScroll);
|
||||
}
|
||||
|
||||
removeScrollListener () {
|
||||
const listings = ReactDOM.findDOMNode(this.refs.listings);
|
||||
const listings = findDOMNode(this.refs.listings);
|
||||
listings.parentNode.removeEventListener('scroll', this.handleScroll);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user