mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Fixed single example, added example links to readme
This commit is contained in:
parent
27e9046cdc
commit
134b73fc14
6 changed files with 20 additions and 12 deletions
|
@ -357,10 +357,10 @@ EPUBJS.core.defaults = function(obj) {
|
|||
EPUBJS.core.extend = function(target) {
|
||||
var sources = [].slice.call(arguments, 1);
|
||||
sources.forEach(function (source) {
|
||||
Object.getOwnPropertyNames(source).forEach(function(propName) {
|
||||
Object.defineProperty(target, propName,
|
||||
Object.getOwnPropertyDescriptor(source, propName));
|
||||
});
|
||||
if(!source) return;
|
||||
Object.getOwnPropertyNames(source).forEach(function(propName) {
|
||||
Object.defineProperty(target, propName, Object.getOwnPropertyDescriptor(source, propName));
|
||||
});
|
||||
});
|
||||
return target;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue