From 9cc22a99de896493bd34a0c773c986c27552edb5 Mon Sep 17 00:00:00 2001 From: pyoor Date: Thu, 6 Jul 2017 10:18:04 -0400 Subject: [PATCH] Multiple bugfixes --- lib/make/command.js | 24 ++++++++++++------------ lib/make/time.js | 0 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 lib/make/time.js diff --git a/lib/make/command.js b/lib/make/command.js index c92b2e3..c75cda6 100644 --- a/lib/make/command.js +++ b/lib/make/command.js @@ -6,32 +6,32 @@ make.command = { _data: { 'backcolor': function () { return make.colors.any() }, 'bold': null, - 'contentReadOnly': function () { random.bool() }, + 'contentReadOnly': function () { return random.bool() }, 'copy': null, - 'createlink': function () { make.uri.any() }, + 'createlink': function () { return make.uri.any() }, 'cut': null, 'decreasefontsize': null, 'delete': null, - 'enableInlineTableEditing': function () { random.bool() }, - 'enableObjectResizing': function () { random.bool() }, - 'fontname': function () { make.font.family() }, - 'fontsize': function () { make.font.relativeSize() }, + 'enableInlineTableEditing': function () { return random.bool() }, + 'enableObjectResizing': function () { return random.bool() }, + 'fontname': function () { return make.font.family() }, + 'fontsize': function () { return make.font.relativeSize() }, 'formatblock': ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'ul', 'pre', 'address', 'blockquote', 'dl', 'div'], 'forwarddelete': null, - 'forecolor': function () { make.colors.any() }, + 'forecolor': function () { return make.colors.any() }, 'gethtml': null, 'heading': null, - 'hilitecolor': function () { make.colors.any() }, + 'hilitecolor': function () { return make.colors.any() }, 'increasefontsize': null, 'indent': null, - 'insertBrOnReturn': function () { random.bool() }, + 'insertBrOnReturn': function () { return random.bool() }, 'inserthorizontalrule': null, // 'inserthtml': function () { }, 'insertlinebreak': null, - 'insertimage': function () { make.uri.any() }, + 'insertimage': function () { return make.uri.any() }, 'insertorderedlist': null, 'insertparagraph': null, - 'inserttext': function () { make.text.any() }, + 'inserttext': function () { return make.text.any() }, 'insertunorderedlist': null, 'italic': null, 'justifycenter': null, @@ -44,7 +44,7 @@ make.command = { 'removeformat': null, 'selectall': null, 'strikethrough': null, - 'styleWithCSS': function () { random.bool() }, + 'styleWithCSS': function () { return random.bool() }, 'subscript': null, 'superscript': null, 'underline': null, diff --git a/lib/make/time.js b/lib/make/time.js new file mode 100644 index 0000000..e69de29