|
|
@@ -335,14 +335,14 @@ exports.addActionGroup = function (id, actions, callback, scope) {
|
|
|
* @return [ Object ]
|
|
|
*/
|
|
|
exports.getDefaults = function () {
|
|
|
- var map = Object.create(this._defaults);
|
|
|
+ var map = Object.assign({}, this._defaults);
|
|
|
|
|
|
for (var key in map) {
|
|
|
if (Array.isArray(map[key])) {
|
|
|
map[key] = Array.from(map[key]);
|
|
|
} else
|
|
|
if (Object.prototype.isPrototypeOf(map[key])) {
|
|
|
- map[key] = Object.create(map[key]);
|
|
|
+ map[key] = Object.assign({}, map[key]);
|
|
|
}
|
|
|
}
|
|
|
|