mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #4299 from peerlibrary/bind-compatibility
Fix for bind compatibility implementation (polyfill)
This commit is contained in:
commit
d28b890aa1
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ if (typeof PDFJS === 'undefined') {
|
|||
Function.prototype.bind = function functionPrototypeBind(obj) {
|
||||
var fn = this, headArgs = Array.prototype.slice.call(arguments, 1);
|
||||
var bound = function functionPrototypeBindBound() {
|
||||
var args = Array.prototype.concat.apply(headArgs, arguments);
|
||||
var args = headArgs.concat(Array.prototype.slice.call(arguments));
|
||||
return fn.apply(obj, args);
|
||||
};
|
||||
return bound;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue