File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 258258 if ( ! this . first || ! this . first . next ) {
259259 return ;
260260 }
261- var current = this . first . next ;
262- var prev = this . first ;
263- var temp ;
264- while ( current ) {
265- temp = current . next ;
266- current . next = prev ;
267- prev . prev = current ;
268- prev = current ;
269- current = temp ;
270- }
271- this . first . next = null ;
272- this . last . prev = null ;
273- temp = this . first ;
274- this . first = prev ;
275- this . last = temp ;
261+ var current = this . first
262+ var next
263+
264+ do {
265+ next = current . next
266+ current . next = current . prev
267+ current . prev = next
268+ current = next
269+ } while ( next )
270+
271+ var tmp = this . first
272+ this . first = this . last
273+ this . last = tmp
276274 } ;
277275
278276} ) ( typeof window === 'undefined' ? module . exports : window ) ;
You can’t perform that action at this time.
0 commit comments