From 0c0833d6b9db31a2bcc5aefd8d5c2ab94f0b80fa Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 17 Jan 2014 10:44:42 -0500 Subject: [PATCH] FIXES #1833, thanks @stefanpenner --- app/assets/javascripts/discourse/mixins/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/mixins/ajax.js b/app/assets/javascripts/discourse/mixins/ajax.js index 8ebf34212db..913cbed1a12 100644 --- a/app/assets/javascripts/discourse/mixins/ajax.js +++ b/app/assets/javascripts/discourse/mixins/ajax.js @@ -65,7 +65,7 @@ Discourse.Ajax = Em.Mixin.create({ // If it's a parseerror, don't reject if (xhr.status === 200) return args.success(xhr); - promise.reject(xhr); + Ember.run(promise, promise.reject, xhr); if (oldError) oldError(xhr); };