From 17adea1ee935d9c471f12ab6f14f2561ad07504b Mon Sep 17 00:00:00 2001 From: Pat O'Neill Date: Wed, 12 Aug 2015 17:22:14 -0400 Subject: [PATCH] Use dot notation --- src/js/slider/slider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/slider/slider.js b/src/js/slider/slider.js index aeb659d725..bc7d4dd9eb 100644 --- a/src/js/slider/slider.js +++ b/src/js/slider/slider.js @@ -20,10 +20,10 @@ class Slider extends Component { super(player, options); // Set property names to bar to match with the child Slider class is looking for - this.bar = this.getChild(this.options_['barName']); + this.bar = this.getChild(this.options_.barName); // Set a horizontal or vertical class on the slider depending on the slider type - this.vertical(!!this.options_['vertical']); + this.vertical(!!this.options_.vertical); this.on('mousedown', this.handleMouseDown); this.on('touchstart', this.handleMouseDown);