From c738033c8fa6a406690746d564daaaae0f795d1a Mon Sep 17 00:00:00 2001 From: Vinnie Freitas Date: Mon, 19 Mar 2018 00:28:05 -0700 Subject: [PATCH] WEB-1471:CHANGE: CamelCase on class name and improve docs --- lib/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 0acf17b..5ce830a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2,9 +2,9 @@ import provide from './provide'; /** * Class for the `ga-task-manager` analytics.js plugin. - * @implements {GATaskManagerPublicInterface} + * @implements {GaTaskManagerPublicInterface} */ -class gaTaskManager { +class GaTaskManager { /** * Registers declarative event tracking. * @param {!Tracker} tracker Passed internally by analytics.js @@ -83,7 +83,7 @@ class gaTaskManager { * If a function is given, it will be executed every time at the moment of task execution. * If a number is given, it will be cast automatically to a string by calling Number.toString() method. * Observe size limit for the string value https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#customs - * @param {string} gaTaskName The name of the GA Task on which to set the Custom Dimension. + * @param {string} gaTaskName The name of the GA Task on which to set the Custom Dimension. Defaults to 'customTask'. */ setCustomDimension(index, value, gaTaskName = 'customTask') { const userTaskName = 'customDimension' + index; @@ -128,4 +128,4 @@ class gaTaskManager { } } -provide('gaTaskManager', gaTaskManager); +provide('GaTaskManager', GaTaskManager);