未捕获的TypeError:对象[object Object]没有方法'call'hiephical.js

时间:2013-05-15 17:08:23

标签: backbone.js coffeescript

在我对模型进行编辑后会发生这种情况。它发送请求(我已经在chrome中打开了,我看到它在外部记录)但是当它得到响应时,会弹出该错误。

这是我的模特:

Investments.EmergingModel = Backbone.Model.extend
  idAttribute: "id_number"

  initialize: ->
    _.bindAll this

  url: ->
    u = "#{Investments.Options.rootUrl}fleets/#{Investments.Options.fleet}/emerging_technology_vehicles"
    u = "#{Investments.Options.rootUrl}fleets/#{Investments.Options.fleet}/emerging_technology_vehicles/#{this.id}" if this.id
    u

如果您需要更多代码,请告诉我。

0 个答案:

没有答案