cms/app-client/app/adapters/application.js
author nowmad@23.1.168.192.in-addr.arpa
Wed, 20 Jan 2016 10:38:09 +0100
changeset 88 1547a32aef60
parent 69 87946963c3bb
child 90 f0609941aa98
permissions -rw-r--r--
add observable on currentItem to update the icon of the item being played

import DS from 'ember-data';

export default DS.FixtureAdapter.extend({
  host: 'http://127.0.0.1',
  namespace: 'api',
  queryFixtures: function(records, query, type) {
    return records.filter(function(record) {
        for(var key in query) {
            if (!query.hasOwnProperty(key)) { continue; }
            var value = query[key];
            if (record[key] !== value) { return false; }
        }
        return true;
    });
  }
});