@@ -379,8 +379,12 @@ webui.SideBarView = function(mainView, noEventHandlers) {
379379 }
380380
381381 if ( id === "remote-branches" && idPostfix === "popup" ) {
382- const remoteBranchBtns = $ ( "#accordion-remote-branches-popup button" ) . filter ( ( i , span ) => jQuery . inArray ( $ ( span ) . text ( ) , refs ) != - 1 ) ;
383- const widest = Math . max ( ...remoteBranchBtns . map ( ( i , span ) => $ ( span ) . width ( ) ) ) ;
382+ var remoteBranchBtns = $ ( "#accordion-remote-branches-popup button" ) . filter ( function ( i , span ) {
383+ return jQuery . inArray ( $ ( span ) . text ( ) , refs ) != - 1 ;
384+ } ) ;
385+ var widest = Math . max . apply ( Math , remoteBranchBtns . map ( function ( i , span ) {
386+ return $ ( span ) . width ( ) ;
387+ } ) ) ;
384388 if ( remoteBranchBtns . length > 0 ) {
385389 remoteBranchBtns . css ( "padding" , ".25rem .5rem" ) ;
386390 remoteBranchBtns . css ( "border" , 0 ) ;
@@ -2199,8 +2203,10 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
21992203 }
22002204 } ) ;
22012205
2202- for ( const otherDeveloperItem of Object . keys ( otherDeveloperUncommittedItems ) ) {
2203- for ( const otherDeveloperUsername of otherDeveloperUncommittedItems [ otherDeveloperItem ] ) {
2206+ for ( var i = 0 , otherDeveloperUncommittedItemsKeys = Object . keys ( otherDeveloperUncommittedItems ) ; i < otherDeveloperUncommittedItemsKeys . length ; i ++ ) {
2207+ var otherDeveloperItem = otherDeveloperUncommittedItemsKeys [ i ] ;
2208+ for ( var j = 0 , otherDeveloperUncommittedItem = otherDeveloperUncommittedItems [ otherDeveloperItem ] ; j < otherDeveloperUncommittedItem . length ; j ++ ) {
2209+ var otherDeveloperUsername = otherDeveloperUncommittedItem [ j ] ;
22042210 if ( col == 1 ) {
22052211 addItemToFileList ( fileList , otherDeveloperUsername , otherDeveloperItem ) ;
22062212 }
0 commit comments