Javascript 自定义适配器会导致加载数据问题

Javascript 自定义适配器会导致加载数据问题,javascript,ember.js,ember-data,Javascript,Ember.js,Ember Data,我计划创建一个从端点获取一些数据的应用程序。 此端点不包含表,但包含RDF三元组 包含的数据必须转换为以下模型。这些模型的id是URI(字符串) 我为每个模型创建了自定义适配器和序列化程序,以处理自定义查询和数据转换 在渲染模型中的所有类别时,我还希望显示该模型中的统计信息。我使用以下方法进行此操作: <script type="text/x-handlebars" id="categories"> <h2>Statistics</h2> <ul

我计划创建一个从端点获取一些数据的应用程序。 此端点不包含表,但包含RDF三元组

包含的数据必须转换为以下模型。这些模型的id是URI(字符串)

我为每个模型创建了自定义适配器和序列化程序,以处理自定义查询和数据转换

在渲染模型中的所有类别时,我还希望显示该模型中的统计信息。我使用以下方法进行此操作:

<script type="text/x-handlebars" id="categories">
  <h2>Statistics</h2>
  <ul>
    {{#each category in model}}
      <li>{{category.title}}</li>
      <ul>
      {{#each statistic in category.statistics}}
      <li>{{statistic}}</li>
      {{/each}}
      </ul>
    {{/each}}
  </ul>
</script>
使用这种方法,我得到以下Javascript错误

Uncaught Error: Attempted to handle event `loadingData` on    <App.Statistic:ember634:http://ewi.mmlab.be/geo#SportOffers> while in state root.loading.
我猜这与我的统计适配器中许多对findMany的调用有关,但是我不确定如何解决这个问题

所有代码可在以下位置查看:

提前谢谢

App.CategoriesRoute = Ember.Route.extend({
    model: function(params) {
        return this.store.find('category');
    }
});
Uncaught Error: Attempted to handle event `loadingData` on    <App.Statistic:ember634:http://ewi.mmlab.be/geo#SportOffers> while in state root.loading.
Error: Assertion Failed: Emptying a view in the inBuffer state is not allowed and should not happen under normal circumstances. Most likely there is a bug in your application. This may be due to excessive property change notifications.