mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:07:03 +08:00
Refactor: Move Topic Details into better objects, identity map, tests, query string filters
This commit is contained in:
@ -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;
|
||||
}
|
Reference in New Issue
Block a user