app/public/restapi/javascripts/restapi.js in restapi-0.0.2 vs app/public/restapi/javascripts/restapi.js in restapi-0.0.3
- old
+ new
@@ -1,15 +1,14 @@
var Restapi = {
Routers: {},
Templates: {},
+ Rendered: false,
init: function() {
new Restapi.Routers.Documentation();
- var base = '/' + window.location.pathname.split('/')[1];
- Backbone.history.start({pushState: true, root: base});
- },
-
- baseurl: function() { return document.location.toString().replace(/#.*/,""); }
+ var base = window.location.pathname;
+ Backbone.history.start({root: base});
+ }
};
$(document).ready(function() {
Restapi.init();
});
\ No newline at end of file