var React = require('react');
var classNames = require('classnames');

var FilterItem = React.createClass({
    propTypes: {
        selected:  React.PropTypes.bool,
        href:      React.PropTypes.string,
        className: React.PropTypes.string,
        count:     React.PropTypes.number,
        onClick:   React.PropTypes.func
    },

    getDefaultProps: function() {
        return {
            selected: false,
            href:   '#'
        };
    },

    onClick: function(e) {
        if (!this.props.onClick) {
            return;
        }

        e.preventDefault();
        this.props.onClick();
    },

    render: function() {
        var className = classNames('filter-item', this.props.className, {
            selected: this.props.selected
        });
        var count = this.props.count;
        var inner = '';

        if (typeof count !== 'undefined') {
            inner = <span className="count">{count}</span>;
        }

        return (
            <li>
                <a className={className} onClick={this.onClick}>
                    {inner}
                    {this.props.children}
                </a>
            </li>
        );
    }
});

var FilterList = React.createClass({
    render: function() {
        return (
            <ul className="filter-list">
                {this.props.children}
            </ul>
        );
    }
});

module.exports = FilterList;
module.exports.Item = FilterItem;

@@ -809,16 +809,53 @@
 .count;%0A
+        var href  = this.props.href;%0A
         
@@ -1060,16 +1060,28 @@
 assName%7D
+ href=%7Bhref%7D
  onClick

Fix href for filter lists items