[Pkg-javascript-commits] [ltx] 367/469: Fix for node 0.12

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:03:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit 2ae7db4146791026c48a1ff63018fbef041bb97f
Author: Sonny Piers <sonny at fastmail.net>
Date:   Sun Feb 15 19:17:47 2015 +0100

    Fix for node 0.12
---
 lib/element.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/element.js b/lib/element.js
index a5f54e5..a062a56 100644
--- a/lib/element.js
+++ b/lib/element.js
@@ -225,7 +225,8 @@ Element.prototype.c = function(name, attrs) {
 
 Element.prototype.cnode = function(child) {
     this.children.push(child)
-    child.parent = this
+    if (typeof child === 'object')
+        child.parent = this
     return child
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list