fix: top level decorate
This commit is contained in:
parent
cf7487a104
commit
d658dc45ed
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user