Make WordPress Core

Changeset 24666


Ignore:
Timestamp:
07/12/2013 05:11:50 AM (9 years ago)
Author:
markjaquith
Message:

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

See #24425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/revisions.js

    r24664 r24666  
    321321    revisions.model.FrameState = Backbone.Model.extend({
    322322        defaults: {
     323            loading: false,
    323324            compareTwoMode: false
    324325        },
     
    392393            // Check if we're actually changing the diff id.
    393394            if ( this._diffId === diffId )
    394                 return $.Deferred().fail().promise();
     395                return $.Deferred().reject().promise();
    395396
    396397            this._diffId = diffId;
     
    408409                } else {
    409410                    this._debouncedEnsureDiff();
    410                     return $.Deferred().fail().promise();
     411                    return $.Deferred().reject().promise();
    411412                }
    412413            }
Note: See TracChangeset for help on using the changeset viewer.