app/public/restapi/javascripts/restapi.js in restapi-0.0.3 vs app/public/restapi/javascripts/restapi.js in restapi-0.0.4
- old
+ new
@@ -1,15 +1,6 @@
-var Restapi = {
- Routers: {},
- Templates: {},
- Rendered: false,
-
- init: function() {
- new Restapi.Routers.Documentation();
- var base = window.location.pathname;
- Backbone.history.start({root: base});
- }
-};
-
$(document).ready(function() {
- Restapi.init();
+ if (typeof prettyPrint == 'function') {
+ $('pre.ruby').addClass('prettyprint lang-rb');
+ prettyPrint();
+ }
});
\ No newline at end of file