diff options
Diffstat (limited to 'client/components/cards')
-rw-r--r-- | client/components/cards/details.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/components/cards/details.js b/client/components/cards/details.js index 05da2053..7c09ba81 100644 --- a/client/components/cards/details.js +++ b/client/components/cards/details.js @@ -40,11 +40,10 @@ BlazeComponent.extendComponent({ }, events: function() { - // XXX We can't define this event directly in the event map below because we - // miss ES6 object keys interpolation. - var events = {}; - events[CSSEvents.animationend + ' .js-card-details'] = function() { - this.isLoaded.set(true); + var events = { + [CSSEvents.animationend + ' .js-card-details']: function() { + this.isLoaded.set(true); + } }; return [_.extend(events, { |