Revisions: Use toggleClass instead of a conditional. See #24425.
git-svn-id: http://core.svn.wordpress.org/trunk@24601 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
179bb9a6ba
commit
419ddce730
wp-admin/js
|
@ -278,10 +278,7 @@ window.wp = window.wp || {};
|
|||
},
|
||||
|
||||
updateCompareTwoMode: function() {
|
||||
if ( this.model.get( 'compareTwoMode' ) )
|
||||
this.$el.addClass( 'comparing-two-revisions' );
|
||||
else
|
||||
this.$el.removeClass( 'comparing-two-revisions' );
|
||||
this.$el.toggleClass( 'comparing-two-revisions', this.model.get('compareTwoMode') );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue