From b34c90ee2b0ea9307c2c2d7e53e84cac89755ac7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 31 Mar 2015 06:12:14 -0700 Subject: [PATCH] minor. --- README.md | 2 +- lib/program.js | 2 +- lib/tput.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0bdeb60..0577459 100644 --- a/README.md +++ b/README.md @@ -1498,7 +1498,7 @@ all code is your original work. `` ## License -Copyright (c) 2013, Christopher Jeffrey. (MIT License) +Copyright (c) 2013-2015, Christopher Jeffrey. (MIT License) See LICENSE for more info. diff --git a/lib/program.js b/lib/program.js index 24c020a..e3956b9 100644 --- a/lib/program.js +++ b/lib/program.js @@ -3672,7 +3672,7 @@ Program.prototype.savePrivateValues = function(params) { Program.prototype.manipulateWindow = function() { var args = slice.call(arguments); - var callback = typeof args[args.length-1] === 'function' + var callback = typeof args[args.length - 1] === 'function' ? args.pop() : function() {}; diff --git a/lib/tput.js b/lib/tput.js index e0fa247..61fd439 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -767,7 +767,7 @@ Tput.prototype._compile = function(info, key, str) { } function stmt(c) { - if (code[code.length-1] === ',') { + if (code[code.length - 1] === ',') { code = code.slice(0, -1); } code += c;