Cannot call 'start' of undefined when star

2019-01-23 11:09发布

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

    Backbone.history.start()

When running some checks Backbone returns the object but Backbone.history returns undefined.

What could be the cause of this?

Thanks

8条回答
贼婆χ
2楼-- · 2019-01-23 11:50

Also using old versions of jquery could cause this

查看更多
ゆ 、 Hurt°
3楼-- · 2019-01-23 11:51

A similar error message ".. has no method 'start'" pops up if you write Backbone.History.start instead of Backbone.history.start (the correct one is with lowercase h in history).

查看更多
登录 后发表回答