Skip to content

Commit

Permalink
Merge pull request #4299 from peerlibrary/bind-compatibility
Browse files Browse the repository at this point in the history
Fix for bind compatibility implementation (polyfill)
  • Loading branch information
yurydelendik committed Feb 18, 2014
2 parents 7e1c6a6 + 628de8a commit d28b890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d28b890

Please sign in to comment.