From 75d3f64632e9e94c0457c13e4ec9dc75bf7fd639 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 06 Dec 2016 21:21:03 +0000
Subject: [PATCH] Make add*WithText functions return the element added

---
 index.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index cdb2886..2e4dc3e 100644
--- a/index.js
+++ b/index.js
@@ -88,11 +88,11 @@
 }
 
 function addCellWithText(parent, text) {
-	addElementWithText(parent, 'td', text);
+	return addElementWithText(parent, 'td', text);
 }
 
 function addParaWithText(parent, text) {
-	addElementWithText(parent, 'p', text);
+	return addElementWithText(parent, 'p', text);
 }
 
 function setText(element, text) {

--
Gitblit v1.9.1