Cannot call 'start' of undefined when starting backbone.js history.

后端 未结 8 1141
感情败类
感情败类 2020-12-15 16:30

I get Cannot call \'start\' of undefined when calling...

    Backbone.history.start()

When running some checks Backbone return

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 17:11

    I faced exact same issue for different reason, after spending couple of hours i realized that a method in my router "route" : function() is causing the issue, after i comment this unnecessary extra method, history.start() worked as expected.

提交回复
热议问题