Ran make lint and fixed the issues it complained about.

This commit is contained in:
gigaherz 2012-02-07 16:11:51 +01:00
parent 6ba38daf56
commit bbd2bc37d6

View File

@ -573,22 +573,29 @@ var PDFView = {
break;
}
},
pinSidebar: function pdfViewPinSidebar() {
var sidebar = document.getElementById("sidebar");
var pinIcon = document.getElementById("pinIcon");
sidebar.className = sidebar.className.replace( /(?:^|\s)released(?!\S)/ , '' );
sidebar.className = sidebar.className.replace( /(?:^|\s)pinned(?!\S)/ , '' );
pinIcon.className = pinIcon.className.replace( /(?:^|\s)released(?!\S)/ , '' );
pinIcon.className = pinIcon.className.replace( /(?:^|\s)pinned(?!\S)/ , '' );
var newClass = this.pinState ? " pinned" : " released";
pinSidebar: function pdfViewPinSidebar() {
var sidebar = document.getElementById('sidebar');
var pinIcon = document.getElementById('pinIcon');
sidebar.className = sidebar.className.replace(
/(?:^|\s)released(?!\S)/ ,
'');
sidebar.className = sidebar.className.replace(
/(?:^|\s)pinned(?!\S)/ ,
'');
pinIcon.className = pinIcon.className.replace(
/(?:^|\s)released(?!\S)/ ,
'');
pinIcon.className = pinIcon.className.replace(
/(?:^|\s)pinned(?!\S)/ ,
'');
var newClass = this.pinState ? ' pinned' : ' released';
sidebar.className += newClass;
pinIcon.className += newClass;
this.pinState = !this.pinState;
},