Permalink
Browse files

basically working in node again

  • Loading branch information...
1 parent 6975988 commit faebfac4c6b9a1ab39e6a70d8b27f43b7526171b @tbranyen committed Oct 15, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 node/index.js
View
@@ -60,14 +60,16 @@ var $ = require("cheerio");
Backbone.LayoutManager.configure({
+ manage: true,
+
deferred: function() {
return def.Deferred();
},
fetch: function(path) {
var done = this.async();
- fs.readFile("./" + path, function(err, contents) {
+ fs.readFile(path, function(err, contents) {
try {
done(_.template(contents.toString()));
} catch (ex) {
@@ -112,6 +114,10 @@ var $ = require("cheerio");
return def.when.apply(null, promises);
},
+ contains: function() {
+ return false;
+ }
+
});
}).call(_.extend(global, { Backbone: Backbone, _: _ }));

0 comments on commit faebfac

Please sign in to comment.