From d29444fa079d95475dc831f34bbfc379f1004c02 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Thu, 3 Apr 2014 12:21:16 +0900 Subject: [PATCH] Update library --- modules/lib/inherit.jsm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lib/inherit.jsm b/modules/lib/inherit.jsm index 4501a153..22d14e73 100644 --- a/modules/lib/inherit.jsm +++ b/modules/lib/inherit.jsm @@ -1,7 +1,7 @@ /** * @fileOverview inherit, an alternative for __proto__ * @author YUKI "Piro" Hiroshi - * @version 1 + * @version 2 * * @license * The MIT License, Copyright (c) 2014 YUKI "Piro" Hiroshi. @@ -22,6 +22,7 @@ function toPropertyDescriptors(aProperties) { function inherit(aParent, aExtraProperties) { if (!Object.create) { + aExtraProperties = aExtraProperties || {}; aExtraProperties.__proto__ = aParent; return aExtraProperties; }