FIXES #1833, thanks @stefanpenner

This commit is contained in:
Robin Ward 2014-01-17 10:44:42 -05:00
parent 2f04acdfd4
commit 0c0833d6b9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
};