mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
Correct the last few test failures in the 1.9.0 branch
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user