Update library

This commit is contained in:
YUKI Hiroshi 2014-04-03 12:21:16 +09:00
parent a933131083
commit d29444fa07

View File

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