mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Replace Util.extendObj
by Object.assign
This commit is contained in:
parent
0e0fa489dd
commit
af8e88d00b
5 changed files with 14 additions and 14 deletions
|
@ -886,12 +886,6 @@ var Util = (function UtilClosure() {
|
|||
return (lowerCase ? romanStr.toLowerCase() : romanStr);
|
||||
};
|
||||
|
||||
Util.extendObj = function extendObj(obj1, obj2) {
|
||||
for (var key in obj2) {
|
||||
obj1[key] = obj2[key];
|
||||
}
|
||||
};
|
||||
|
||||
Util.inherit = function Util_inherit(sub, base, prototype) {
|
||||
sub.prototype = Object.create(base.prototype);
|
||||
sub.prototype.constructor = sub;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue