aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-08 20:34:34 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-08 20:34:34 +0100
commitc1a3e929b7268f14619daf3eff0085a747703f7e (patch)
tree05b686b62e61d55ac2faebe49fe132d4757eeefb /lib/documents.js
parent87105c192933b043a04b1ff00abd575805bb3c65 (diff)
Remove properties attribute from Run
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/documents.js b/lib/documents.js
index e4f0ef7..f1ce08b 100644
--- a/lib/documents.js
+++ b/lib/documents.js
@@ -5,8 +5,6 @@ function Document(children) {
};
}
-Run = ElementWithChildren("run");
-
function Paragraph(children, properties) {
properties = properties || {};
return {
@@ -16,6 +14,17 @@ function Paragraph(children, properties) {
};
}
+function Run(children, properties) {
+ properties = properties || {};
+ return {
+ type: "run",
+ children: children,
+ styleName: properties.styleName,
+ isBold: properties.isBold,
+ isItalic: properties.isItalic
+ };
+}
+
function Text(value) {
return {
type: "text",