mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Moves shared/function.js to core/
This commit is contained in:
parent
7a19085159
commit
fcc4dfd9b5
10 changed files with 19 additions and 23 deletions
|
@ -963,20 +963,6 @@ function isRef(v) {
|
|||
return v instanceof Ref;
|
||||
}
|
||||
|
||||
function isPDFFunction(v) {
|
||||
var fnDict;
|
||||
if (typeof v != 'object') {
|
||||
return false;
|
||||
} else if (isDict(v)) {
|
||||
fnDict = v;
|
||||
} else if (isStream(v)) {
|
||||
fnDict = v.dict;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return fnDict.has('FunctionType');
|
||||
}
|
||||
|
||||
/**
|
||||
* Promise Capability object.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue