We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At http://backbonetutorials.com/organizing-backbone-using-modules/
define([ 'jquery', 'underscore', 'backbone', 'views/projects/list', 'views/users/list' ], function($, _, Backbone, Session, ProjectListView, UserListView){
Is wrong because the Session is not loaded.
Also in the same page: http://backbonetutorials.com/organizing-backbone-using-modules/
app_router.on('showProjects', function(){
should be
app_router.on('route:showProjects', function(){
see more here: http://stackoverflow.com/questions/14410242/backbone-router-doesnt-work-with-requirejs
The text was updated successfully, but these errors were encountered:
Ok yes, good catch. Thomas just needs to fix the tutorial to match the source - just remove Session and add the route as you described.
It's actually correct in the github source ;-D
Sorry, something went wrong.
Actually... would you mind updating the code yourself? Then make a pull request and you'll get a nice contribution credit.
Fix thomasdavis#85
1535c59
The events fired by the app router have a "route:" prefix. (as explained here http://stackoverflow.com/questions/14410242/backbone-router-doesnt-work-with-requirejs)
No branches or pull requests
At http://backbonetutorials.com/organizing-backbone-using-modules/
define([
'jquery',
'underscore',
'backbone',
'views/projects/list',
'views/users/list'
], function($, _, Backbone, Session, ProjectListView, UserListView){
Is wrong because the Session is not loaded.
Also in the same page: http://backbonetutorials.com/organizing-backbone-using-modules/
app_router.on('showProjects', function(){
should be
app_router.on('route:showProjects', function(){
see more here: http://stackoverflow.com/questions/14410242/backbone-router-doesnt-work-with-requirejs
The text was updated successfully, but these errors were encountered: