pass bo_client to ember 2.8, adjust for the hack around the aupac-typeahead bug in 2.8 (c.f. https://github.com/aupac/ember-aupac-typeahead/issues/23)
import Ember from 'ember';
export function isChecked(params) {
var dates = params[0];
var decade = [];
var next = params[1] + 10;
while(params[1] < next) {
decade.push(params[1]);
params[1] ++;
}
var filter = decade.filter(function(date){ return dates.indexOf(date) > -1; });
if(filter.length === decade.length) {
return true;
}
return false;
}
export default Ember.Helper.helper(isChecked);