mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 14:41:25 +08:00
Ember RC6 update
This commit is contained in:
@ -18,4 +18,15 @@ function controllerFor(controller, model) {
|
||||
var controller = Discourse.__container__.lookup('controller:' + controller);
|
||||
if (model) { controller.set('model', model ); }
|
||||
return controller;
|
||||
}
|
||||
|
||||
function asyncTestDiscourse(text, func) {
|
||||
|
||||
asyncTest(text, function () {
|
||||
|
||||
var qunitContext = this;
|
||||
Ember.run(function () {
|
||||
func.call(qunitContext);
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user