mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Correct the last few test failures in the 1.9.0 branch
This commit is contained in:
parent
3e8d8bf90d
commit
331bba4b6d
3 changed files with 17 additions and 5 deletions
|
@ -16,7 +16,7 @@ function response(code, obj) {
|
|||
}
|
||||
|
||||
function success() {
|
||||
return response();
|
||||
return response({ success: true });
|
||||
}
|
||||
|
||||
export default function() {
|
||||
|
|
|
@ -49586,7 +49586,13 @@ enifed("rsvp/promise",
|
|||
_guidKey: guidKey,
|
||||
|
||||
_onerror: function (reason) {
|
||||
config.trigger('error', reason);
|
||||
config.async(function(promise) {
|
||||
setTimeout(function() {
|
||||
if (promise._onerror) {
|
||||
config['trigger']('error', reason);
|
||||
}
|
||||
}, 0);
|
||||
}, this);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -47682,7 +47682,13 @@ enifed("rsvp/promise",
|
|||
_guidKey: guidKey,
|
||||
|
||||
_onerror: function (reason) {
|
||||
config.trigger('error', reason);
|
||||
config.async(function(promise) {
|
||||
setTimeout(function() {
|
||||
if (promise._onerror) {
|
||||
config['trigger']('error', reason);
|
||||
}
|
||||
}, 0);
|
||||
}, this);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue