diff --git a/platform/features/clock/src/actions/AbstractStartTimerAction.js b/platform/features/clock/src/actions/AbstractTimerAction.js similarity index 93% rename from platform/features/clock/src/actions/AbstractStartTimerAction.js rename to platform/features/clock/src/actions/AbstractTimerAction.js index dc55f446f4..f507a4f435 100644 --- a/platform/features/clock/src/actions/AbstractStartTimerAction.js +++ b/platform/features/clock/src/actions/AbstractTimerAction.js @@ -40,12 +40,12 @@ define( * time (typically wrapping `Date.now`) * @param {ActionContext} context the context for this action */ - function AbstractStartTimerAction(now, context) { + function AbstractTimerAction(now, context) { this.domainObject = context.domainObject; this.now = now; } - AbstractStartTimerAction.prototype.perform = function () { + AbstractTimerAction.prototype.perform = function () { var domainObject = this.domainObject, now = this.now; @@ -56,6 +56,6 @@ define( return domainObject.useCapability('mutation', setTimestamp); }; - return AbstractStartTimerAction; + return AbstractTimerAction; } ); diff --git a/platform/features/clock/src/actions/RestartTimerAction.js b/platform/features/clock/src/actions/RestartTimerAction.js index bb12cb1392..6245f1324b 100644 --- a/platform/features/clock/src/actions/RestartTimerAction.js +++ b/platform/features/clock/src/actions/RestartTimerAction.js @@ -21,8 +21,8 @@ *****************************************************************************/ define( - ['./AbstractStartTimerAction'], - function (AbstractStartTimerAction) { + ['./AbstractTimerAction'], + function (AbstractTimerAction) { /** * Implements the "Restart at 0" action. @@ -39,11 +39,11 @@ define( * @param {ActionContext} context the context for this action */ function RestartTimerAction(now, context) { - AbstractStartTimerAction.apply(this, [now, context]); + AbstractTimerAction.apply(this, [now, context]); } RestartTimerAction.prototype = - Object.create(AbstractStartTimerAction.prototype); + Object.create(AbstractTimerAction.prototype); RestartTimerAction.appliesTo = function (context) { var model = diff --git a/platform/features/clock/src/actions/StartTimerAction.js b/platform/features/clock/src/actions/StartTimerAction.js index cf3952a99d..0336bebc6b 100644 --- a/platform/features/clock/src/actions/StartTimerAction.js +++ b/platform/features/clock/src/actions/StartTimerAction.js @@ -21,8 +21,8 @@ *****************************************************************************/ define( - ['./AbstractStartTimerAction'], - function (AbstractStartTimerAction) { + ['./AbstractTimerAction'], + function (AbstractTimerAction) { /** * Implements the "Start" action for timers. @@ -39,11 +39,11 @@ define( * @param {ActionContext} context the context for this action */ function StartTimerAction(now, context) { - AbstractStartTimerAction.apply(this, [now, context]); + AbstractTimerAction.apply(this, [now, context]); } StartTimerAction.prototype = - Object.create(AbstractStartTimerAction.prototype); + Object.create(AbstractTimerAction.prototype); StartTimerAction.appliesTo = function (context) { var model = diff --git a/platform/features/clock/test/actions/AbstractStartTimerActionSpec.js b/platform/features/clock/test/actions/AbstractTimerActionSpec.js similarity index 94% rename from platform/features/clock/test/actions/AbstractStartTimerActionSpec.js rename to platform/features/clock/test/actions/AbstractTimerActionSpec.js index 6478d07877..74d8763ced 100644 --- a/platform/features/clock/test/actions/AbstractStartTimerActionSpec.js +++ b/platform/features/clock/test/actions/AbstractTimerActionSpec.js @@ -21,8 +21,8 @@ *****************************************************************************/ define( - ["../../src/actions/AbstractStartTimerAction"], - function (AbstractStartTimerAction) { + ["../../src/actions/AbstractTimerAction"], + function (AbstractTimerAction) { describe("A timer's start/restart action", function () { var mockNow, @@ -54,7 +54,7 @@ define( testModel = {}; - action = new AbstractStartTimerAction(mockNow, { + action = new AbstractTimerAction(mockNow, { domainObject: mockDomainObject }); });