mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Replace the isArray
helper function with the native Array.isArray
function
*Follow-up to PR 8813.*
This commit is contained in:
parent
22ade754cc
commit
cfb4955a92
17 changed files with 77 additions and 87 deletions
|
@ -14,8 +14,6 @@
|
|||
*/
|
||||
/* uses XRef */
|
||||
|
||||
import { isArray } from '../shared/util';
|
||||
|
||||
var EOF = {};
|
||||
|
||||
var Name = (function NameClosure() {
|
||||
|
@ -117,7 +115,7 @@ var Dict = (function DictClosure() {
|
|||
getArray: function Dict_getArray(key1, key2, key3) {
|
||||
var value = this.get(key1, key2, key3);
|
||||
var xref = this.xref, suppressEncryption = this.suppressEncryption;
|
||||
if (!isArray(value) || !xref) {
|
||||
if (!Array.isArray(value) || !xref) {
|
||||
return value;
|
||||
}
|
||||
value = value.slice(); // Ensure that we don't modify the Dict data.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue