Revisions: use reject(), not fail(), when rejecting a deferred.

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24666 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2013-07-12 05:11:50 +00:00
parent a73c2969dd
commit 539440d159

View File

@ -320,6 +320,7 @@ window.wp = window.wp || {};
revisions.model.FrameState = Backbone.Model.extend({
defaults: {
loading: false,
compareTwoMode: false
},
@ -391,7 +392,7 @@ window.wp = window.wp || {};
// Check if we're actually changing the diff id.
if ( this._diffId === diffId )
return $.Deferred().fail().promise();
return $.Deferred().reject().promise();
this._diffId = diffId;
this.trigger( 'update:revisions', from, to );
@ -407,7 +408,7 @@ window.wp = window.wp || {};
return this._ensureDiff();
} else {
this._debouncedEnsureDiff();
return $.Deferred().fail().promise();
return $.Deferred().reject().promise();
}
}
},