Fix an exception introduced in 41b23f8

This commit is contained in:
Maxime Quandalle 2015-10-31 13:21:12 -07:00
parent 41b23f88ae
commit f9cbc1da4c

View file

@ -45,7 +45,8 @@ BlazeComponent.extendComponent({
},
scrollLeft(position = 0) {
this.$('.js-lists').animate({
const lists = this.$('.js-lists');
lists && lists.animate({
scrollLeft: position,
});
},