Backbone.js: Router callback not reached

不羁的心 提交于 2019-12-02 12:06:13

Looks like you just need to call Backbone.history.start rather than simply reference it. This just references the function:

Backbone.history.start

This calls it:

Backbone.history.start()

The function-calling parentheses are only optional when you supply some arguments.

Demo: http://jsfiddle.net/ambiguous/hUZUV/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!