@@ -379,8 +379,12 @@ webui.SideBarView = function(mainView, noEventHandlers) {
379
379
}
380
380
381
381
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
+ } ) ) ;
384
388
if ( remoteBranchBtns . length > 0 ) {
385
389
remoteBranchBtns . css ( "padding" , ".25rem .5rem" ) ;
386
390
remoteBranchBtns . css ( "border" , 0 ) ;
@@ -2199,8 +2203,10 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
2199
2203
}
2200
2204
} ) ;
2201
2205
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 ] ;
2204
2210
if ( col == 1 ) {
2205
2211
addItemToFileList ( fileList , otherDeveloperUsername , otherDeveloperItem ) ;
2206
2212
}
@@ -2212,7 +2218,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
2212
2218
} ) ;
2213
2219
2214
2220
Object . keys ( localStorage ) . filter ( function ( key ) {
2215
- return ! filePaths . includes ( key ) ;
2221
+ return ( filePaths . indexOf ( key ) === - 1 ) ;
2216
2222
} ) . map ( function ( key ) {
2217
2223
localStorage . removeItem ( key ) ;
2218
2224
} ) ;
0 commit comments