Skip to content

Commit

Permalink
Merge pull request tbranyen#69 from andrewpthorp/master
Browse files Browse the repository at this point in the history
Fixed a problem in the fetchTemplate jQuery.get() method.
  • Loading branch information
tbranyen committed Mar 2, 2012
2 parents f1e74e6 + ad87772 commit a932afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/namespace.js
Expand Up @@ -22,13 +22,13 @@ function($, _, Backbone) {
return done(JST[path]);
}

// Fetch it asynchronously if not available from JST
// Fetch it asynchronously if not available from JST
return $.get(path, function(contents) {
var tmpl = _.template(contents);

// Set the global JST cache and return the template
done(JST[path] = tmpl);
});
}, "text");
},

// Create a custom object with a nested Views object
Expand Down

0 comments on commit a932afe

Please sign in to comment.