update interop-require-wildcard helper

This commit is contained in:
Sebastian McKenzie
2015-04-28 15:58:37 +01:00
parent 152ae388f0
commit 374b7cca2c
20 changed files with 28 additions and 74 deletions

View File

@@ -3,10 +3,8 @@
return obj;
} else {
var newObj = {};
if (obj !== null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
}
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
}
newObj.default = obj;
return newObj;