Refactor: Move Topic Details into better objects, identity map, tests, query string filters

This commit is contained in:
Robin Ward
2013-06-20 17:20:08 -04:00
parent d051e35000
commit 5770879472
56 changed files with 1854 additions and 1244 deletions

View File

@ -12,4 +12,10 @@ function integration(name) {
Discourse.ScrollingDOMMethods.unbindOnScroll.restore();
}
});
}
function controllerFor(controller, model) {
var controller = Discourse.__container__.lookup('controller:' + controller);
if (model) { controller.set('model', model ); }
return controller;
}