just webpack things (#988)

This commit is contained in:
Gus Caplan
2016-12-14 18:40:47 -06:00
committed by Schuyler Cebulskie
parent 264ee8e7f1
commit 2e7472bb1a

View File

@@ -363,9 +363,7 @@ exports.applyToClass = (structure, full = false) => {
props.push('createCollector');
props.push('awaitMessages');
}
for (const prop of props) applyProp(structure, prop);
for (const prop of props) {
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
}
};
function applyProp(structure, prop) {
Object.defineProperty(structure.prototype, prop, Object.getOwnPropertyDescriptor(TextBasedChannel.prototype, prop));
}