Created
September 6, 2012 20:15
-
-
Save shinecita/3660067 to your computer and use it in GitHub Desktop.
Show function that gives me the backbone object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, show: function (orgUserName) { | |
$('body').removeClass(); | |
$('body').addClass('organizations'); | |
var org = new Organization({id : orgUserName}); | |
org.fetch(); | |
var view = new OrganizationView({model: org}); | |
Application. | |
trigger('showSidebar', view); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With findOrFetch
, show: function (orgUserName) {
$('body').removeClass();
$('body').addClass('organizations');
// org.fetch({success: function(){
// var view = new OrganizationView({model: org});
// Application.
// trigger('showSidebar', view);
// }
// });