Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define([
- 'jquery',
- 'underscore',
- 'backbone',
- 'views/specification/SpecificationView',
- ], function($, _, Backbone, SpecsView) {
- var AppRouter = Backbone.Router.extend({
- routes: {
- '': 'defaultAction',
- }
- });
- var initialize = function(){
- var app_router = new AppRouter;
- $('#backBoneContent').html("");
- app_router.on('route:defaultAction', function (actions)
- {
- var specsView = new SpecsView();
- specsView.render();
- });
- Backbone.history.start();
- };
- return {
- initialize: initialize
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement