Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Remove example key from task hash #275 + #292
Browse files Browse the repository at this point in the history
  • Loading branch information
clemens-tolboom committed Jul 11, 2016
1 parent 4368e5e commit c71e50b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,13 @@ var scheduler = window.scheduler = (function() {
* Utility to create a task.
*
* @param id
* @returns {{active: boolean, id: *, description: string, example: string, getPriority: getPriority, execute: execute}}
* @returns {
* active: boolean,
* id: string,
* description: string,
* getPriority: getPriority,
* execute: execute
* }
*/
newTask: function(id) {
return {
Expand All @@ -1080,7 +1086,6 @@ var scheduler = window.scheduler = (function() {
id: id,
// used when dumping all tasks
description: 'Description of ' + id,
example: 'Example of ' + id,
getPriority: function() {
console.log('Task ' + id + ' should have an implementation for "getPriority"');
return 0;
Expand Down

0 comments on commit c71e50b

Please sign in to comment.