From 2b3fdf7ea80bb7af8e6317c2ce30a4ce3236e7f6 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Sat, 23 Aug 2014 18:52:30 -0500 Subject: [PATCH] Additional test coverage cleanup Also fixes the template._child implementation which broke with the depthed work. --- lib/handlebars/compiler/printer.js | 6 ++---- lib/handlebars/runtime.js | 7 +++---- spec/precompiler.js | 19 ++++++++++++++++++- spec/runtime.js | 20 ++++++++++++++++++++ 4 files changed, 43 insertions(+), 9 deletions(-) diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js index be66d73d..7654245c 100644 --- a/lib/handlebars/compiler/printer.js +++ b/lib/handlebars/compiler/printer.js @@ -10,16 +10,14 @@ export function PrintVisitor() { PrintVisitor.prototype = new Visitor(); -PrintVisitor.prototype.pad = function(string, newline) { +PrintVisitor.prototype.pad = function(string) { var out = ""; for(var i=0,l=this.padding; i