HomePhabricator

Use native ES5 Array prototype methods instead of jQuery

Description

Use native ES5 Array prototype methods instead of jQuery

Replace

  • $.each( array, function ( index, value ) { ... } ) by array.forEach( function ( value, index ) { ... } )
  • $.grep( array, function ( value ) { ... } ) by array.filter( function ( value ) { ... } )
  • $.map( array, function ( value ) { ... } ) by array.map( function ( value ) { ... } )

This change is a follow-up to 9d67e9973e6766e057c70ea8c811be8e269fb80a.

Change-Id: I8ef9af8c4d2f440faca65ec7c78a977ea7c31ad2

Details

Provenance
FomafixAuthored on Jan 11 2018, 2:27 PM
Parents
rMW197529765426: Merge "Handle failure to load content in Revision getSize, etc"
Branches
Unknown
Tags
Unknown
ChangeId
I8ef9af8c4d2f440faca65ec7c78a977ea7c31ad2