mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
Revisions: use reject()
, not fail()
, when rejecting a deferred.
See #24425. git-svn-id: http://core.svn.wordpress.org/trunk@24666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2610d9a821
commit
6af2febb37
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user