From 97394d337e2a8b00b9ed9a00d82a21c90e135702 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 15 Jun 2015 10:43:42 -0800 Subject: [PATCH] Minor measurements cleanup --- app/pods/measurements/controller.js | 5 ++--- app/pods/measurements/route.js | 2 +- app/pods/measurements/template.hbs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/pods/measurements/controller.js b/app/pods/measurements/controller.js index 8bb7819..a8c8cd0 100644 --- a/app/pods/measurements/controller.js +++ b/app/pods/measurements/controller.js @@ -3,11 +3,10 @@ import Ember from 'ember'; export default Ember.Controller.extend({ actions: { search: function() { - let search = { + this.store.find('measurement', { strain: this.get('selectedStrains'), characteristic: this.get('selectedCharacteristics'), - }; - this.store.find('measurement', search).then((measurements)=>{ + }).then((measurements)=>{ this.set('measurements', measurements); }); } diff --git a/app/pods/measurements/route.js b/app/pods/measurements/route.js index d460d65..271d58c 100644 --- a/app/pods/measurements/route.js +++ b/app/pods/measurements/route.js @@ -16,7 +16,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, { { model: 'characteristics', id: 'id', text: 'characteristicName' }, ]; - selects.forEach((item, index, enumerable) => { + selects.forEach((item /*, index, enumerable*/) => { models[item.model] = models[item.model].sortBy(item.text); let temp = models[item.model].map((data) => { return Ember.Object.create({ diff --git a/app/pods/measurements/template.hbs b/app/pods/measurements/template.hbs index 6f0bf11..671e7e0 100644 --- a/app/pods/measurements/template.hbs +++ b/app/pods/measurements/template.hbs @@ -5,7 +5,7 @@