Function.prototype.bind emulation; enable compatibility.js for multi_page_viewer
This commit is contained in:
parent
2179cd0943
commit
e5762f3ec8
@ -137,4 +137,17 @@
|
||||
};
|
||||
})();
|
||||
|
||||
// Function.prototype.bind ?
|
||||
(function() {
|
||||
if (typeof Function.prototype.bind !== "undefined")
|
||||
return;
|
||||
|
||||
Function.prototype.bind = function(obj) {
|
||||
var fn = this, headArgs = Array.prototype.slice.call(arguments, 1);
|
||||
var binded = function(tailArgs) {
|
||||
var args = headArgs.concat(tailArgs);
|
||||
return fn.apply(obj, args);
|
||||
};
|
||||
return binded;
|
||||
};
|
||||
})();
|
||||
|
@ -4,6 +4,7 @@
|
||||
<title>pdf.js Multi-Page Viewer</title>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
|
||||
<link rel="stylesheet" href="multi_page_viewer.css" type="text/css" media="screen"/>
|
||||
<script type="text/javascript" src="compatibility.js"></script>
|
||||
<script type="text/javascript" src="../pdf.js"></script>
|
||||
<script type="text/javascript" src="../fonts.js"></script>
|
||||
<script type="text/javascript" src="../crypto.js"></script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user