Update library
This commit is contained in:
parent
a933131083
commit
d29444fa07
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @fileOverview inherit, an alternative for __proto__
|
* @fileOverview inherit, an alternative for __proto__
|
||||||
* @author YUKI "Piro" Hiroshi
|
* @author YUKI "Piro" Hiroshi
|
||||||
* @version 1
|
* @version 2
|
||||||
*
|
*
|
||||||
* @license
|
* @license
|
||||||
* The MIT License, Copyright (c) 2014 YUKI "Piro" Hiroshi.
|
* The MIT License, Copyright (c) 2014 YUKI "Piro" Hiroshi.
|
||||||
@ -22,6 +22,7 @@ function toPropertyDescriptors(aProperties) {
|
|||||||
|
|
||||||
function inherit(aParent, aExtraProperties) {
|
function inherit(aParent, aExtraProperties) {
|
||||||
if (!Object.create) {
|
if (!Object.create) {
|
||||||
|
aExtraProperties = aExtraProperties || {};
|
||||||
aExtraProperties.__proto__ = aParent;
|
aExtraProperties.__proto__ = aParent;
|
||||||
return aExtraProperties;
|
return aExtraProperties;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user