Revisions: Use toggleClass instead of a conditional. See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2013-07-09 07:11:43 +00:00
parent 7f8538805b
commit 9e5fb3311f
1 changed files with 1 additions and 4 deletions

View File

@ -278,10 +278,7 @@ window.wp = window.wp || {};
}, },
updateCompareTwoMode: function() { updateCompareTwoMode: function() {
if ( this.model.get( 'compareTwoMode' ) ) this.$el.toggleClass( 'comparing-two-revisions', this.model.get('compareTwoMode') );
this.$el.addClass( 'comparing-two-revisions' );
else
this.$el.removeClass( 'comparing-two-revisions' );
} }
}); });