mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
Refactor: Move Topic Details into better objects, identity map, tests, query string filters
This commit is contained in:
parent
d051e35000
commit
5770879472
56 changed files with 1854 additions and 1244 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue