fix: top level decorate

This commit is contained in:
cha0s 2019-04-19 17:10:00 -05:00
parent cf7487a104
commit d658dc45ed

View File

@ -8,10 +8,10 @@ const decorate = compose(
EventEmitter,
);
class TransitionResult {
export default class TransitionResult extends decorate(class {}) {
constructor(subject, props, duration, easing) {
super();
// Speed might not get passed. If it doesn't, default to 100
// milliseconds.
this.duration = parseInt(duration || 100);
@ -116,5 +116,3 @@ class TransitionResult {
}
}
}
export default decorate(TransitionResult);