Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Way to check Backbone.history has already been started?

Is there a way to check whether Backbone.history already have been started or not.

I am consuming a view as a service which is written using Backbone and routers. When I am rendering the view I am getting the error Backbone.history has already been started.

Is there a way to avoid the error?

Because of this error the routers attached in the external view is not invoked.

like image 288
rolling stone Avatar asked Aug 02 '13 14:08

rolling stone


1 Answers

Backbone.History.started is a boolean variable that indicated whether or not History has been started. Be sure that the H is uppercase.

like image 64
Stephen Thomas Avatar answered Nov 15 '22 18:11

Stephen Thomas