mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -11,8 +11,11 @@ export default function() {
|
||||
register: {
|
||||
lookup(type) {
|
||||
if (type === "adapter:rest") {
|
||||
this._restAdapter = this._restAdapter || RestAdapter.create({ container: this });
|
||||
return (this._restAdapter);
|
||||
if (!this._restAdapter) {
|
||||
this._restAdapter = RestAdapter.create({ owner: this });
|
||||
// this._restAdapter.container = this;
|
||||
}
|
||||
return this._restAdapter;
|
||||
}
|
||||
if (type === "key-value-store:main") {
|
||||
this._kvs = this._kvs || new KeyValueStore();
|
||||
@ -34,5 +37,4 @@ export default function() {
|
||||
},
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user