[Clocks/Timers] Fix parent constructor invocations

This commit is contained in:
Victor Woeltjen 2015-12-09 12:40:21 -08:00
parent 714ae3b9dc
commit 7871af07c4
2 changed files with 2 additions and 8 deletions

View File

@ -41,10 +41,7 @@ define(
* @param {ActionContext} context the context for this action * @param {ActionContext} context the context for this action
*/ */
function RestartTimerAction(now, context) { function RestartTimerAction(now, context) {
AbstractStartTimerAction.prototype.apply( AbstractStartTimerAction.apply(this, [ now, context ]);
this,
[ now, context ]
);
} }
RestartTimerAction.prototype = RestartTimerAction.prototype =

View File

@ -41,10 +41,7 @@ define(
* @param {ActionContext} context the context for this action * @param {ActionContext} context the context for this action
*/ */
function StartTimerAction(now, context) { function StartTimerAction(now, context) {
AbstractStartTimerAction.prototype.apply( AbstractStartTimerAction.apply(this, [ now, context ]);
this,
[ now, context ]
);
} }
StartTimerAction.prototype = StartTimerAction.prototype =