mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 16:14:30 +08:00
Merge pull request #1500 from velesin/qunit_helpers_self
refactors asyncTestDiscourse to bind context as self
This commit is contained in:
commit
b12fcec2db
@ -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…
x
Reference in New Issue
Block a user