1
0
Fork 0
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:
Fred Chasen 2015-05-11 14:15:35 -04:00
parent 27e9046cdc
commit 134b73fc14
6 changed files with 20 additions and 12 deletions

View file

@ -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;
};