Commit Graph

3 Commits

Author SHA1 Message Date
Joey Parrish 7091275cbf Replace indexOf with includes, startsWith
This replaces almost every instance of indexOf on both String and
Array.  There are very few places where we really wanted an index.
Mostly, indexOf was used to check for inclusion.

Change-Id: I08e299768b6ffdb4bfc30b39b5d82a058c6d1b56
2018-09-14 19:10:56 +00:00
Joey Parrish 49c7c0c94c Fix advanced DRM settings pollution across key systems
When merging config objects, we accidentally used the same object
reference for multiple key systems.  This caused settings meant for
one to affect another.

The clone util had to be updated to handle Uint8Arrays, which may be
present in DRM configs.

Closes #1524

Change-Id: I66c8dc114573605471b1eeb38e890bbd4d29e2d4
2018-08-29 17:14:37 +00:00
Theodore Abshire f6a1c6e4aa Moved cloneObject to new util file
cloneObject used to be part of config_utils.js.
This meant that a number of classes that didn't actually use
config objects required ConfigUtils.
This moves cloneObject into the new ObjectUtils, to clarify that.

Change-Id: I92d630eba8798b3e2671dcce95b61f44282b05e7
2018-08-07 13:15:06 -07:00