mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
refactors asyncTestDiscourse to bind context as self
This commit is contained in:
parent
094b5eccca
commit
7106b27860
1 changed files with 2 additions and 4 deletions
|
@ -25,12 +25,10 @@ function controllerFor(controller, model) {
|
|||
}
|
||||
|
||||
function asyncTestDiscourse(text, func) {
|
||||
|
||||
asyncTest(text, function () {
|
||||
|
||||
var qunitContext = this;
|
||||
var self = this;
|
||||
Ember.run(function () {
|
||||
func.call(qunitContext);
|
||||
func.call(self);
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue