code-links
code-links copied to clipboard
Can't navigate into Class method
Hi,
thanks for great plugin! I want to inform you about problem, when I can't navigate into methods which are declared in class, see screenshot method aren't underlined.

Having the same issue, any file with a class declaration isn't working at all for me; all other JS files work great though! Thanks for the awesome plugin!
import React, {Component, PropTypes as pt} from 'react';
import {connectToStores} from 'fluxible/addons';
import {autoBindAll} from '../../utils';
import {throttle} from 'lodash';
import classnames from 'classnames';
const debug = require('debug')('Component:Picture');
debug();
class Picture extends Component {
constructor(props) {
super(props);
autoBindAll.call(this, [
'debouncedScroll',
'removeListener',
'waitForLoad'
]);
this.state = {
isVisible: false,
isLoaded: false
};
debug('scroll', props);
}
static displayName = 'Picture'
static contextTypes = {
router: pt.func.isRequired,
getStore: pt.func.isRequired,
executeAction: pt.func.isRequired
}
static propTypes = {
mediaRecord: pt.object.isRequired,
store: pt.object.isRequired,
onClick: pt.func,
lazy: pt.bool,
scrollElement: pt.bool
}
componentDidMount() {
const DOMNode = React.findDOMNode(this);
const boundFunc = this.debouncedScroll.bind(this, DOMNode);
this._scrollElement = this.props.scrollElement || window;
this.throttled = throttle(boundFunc, 250);
this._scrollElement.addEventListener('scroll', this.throttled, false);
this._scrollElement.addEventListener('resize', this.throttled, false);
this.throttled();
}
I didn't implement this because my primary purpose of this plugin was to navigate around my own projects.