From c6ae13de1722b701140398f534277a94e418a1db Mon Sep 17 00:00:00 2001 From: Matt Kirman Date: Mon, 28 Nov 2016 11:24:48 +0000 Subject: [PATCH] Applied fix for #28 from timonbandit/master (1683026) --- src/videojs.ga.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/videojs.ga.coffee b/src/videojs.ga.coffee index 495d4bb..0e5b57e 100644 --- a/src/videojs.ga.coffee +++ b/src/videojs.ga.coffee @@ -9,8 +9,8 @@ videojs.plugin 'ga', (options = {}) -> # this loads options from the data-setup attribute of the video tag dataSetupOptions = {} - if @options()["data-setup"] - parsedOptions = JSON.parse(@options()["data-setup"]) + if @options_["data-setup"] + parsedOptions = JSON.parse(@options_["data-setup"]) dataSetupOptions = parsedOptions.ga if parsedOptions.ga defaultsEventsToTrack = [