// init Isotope // bind filter on select change // get filter value from option value // var filterValue = this.value; // use filterFn if matches value //$grid.isotope({ filter: filterValue }); // get filter value from option value // var filterValue = this.value; // use filterFn if matches value //$grid.isotope({ filter: filterValue }); // map input values to an array // exclusive filters from selects // inclusive filters from checkboxes // if checkbox, use value if checked // combine exclusive and inclusive filters // first combine exclusives // map inclusives with exclusives for // debounce so filtering doesn't happen every millisecond