From 26bc7851bb09e1297b3b48a67ac25e153dd5883a Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Tue, 20 Mar 2018 15:30:34 -0700 Subject: [PATCH] Rename ReporterScope.SPRITE to TARGET & add JSDoc --- src/extension-support/reporter-scope.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/extension-support/reporter-scope.js b/src/extension-support/reporter-scope.js index 159d4b1c..6157d1c5 100644 --- a/src/extension-support/reporter-scope.js +++ b/src/extension-support/reporter-scope.js @@ -1,6 +1,18 @@ +/** + * Indicate the scope for a reporter's value. + * @enum {string} + */ const ReporterScope = { + /** + * This reporter's value is global and does not depend on context. + */ GLOBAL: 'global', - SPRITE: 'sprite' + + /** + * This reporter's value is specific to a particular target/sprite. + * Another target may have a different value or may not even have a value. + */ + TARGET: 'target' }; module.exports = ReporterScope;