minor
authorMihai Bazon <mihai@bazon.net>
Fri, 12 Oct 2012 11:55:54 +0000 (14:55 +0300)
committerMihai Bazon <mihai@bazon.net>
Fri, 12 Oct 2012 11:55:54 +0000 (14:55 +0300)
lib/transform.js

index 2ba004e..976dd05 100644 (file)
@@ -59,7 +59,7 @@ TreeTransformer.prototype = new TreeWalker;
         node.DEFMETHOD("transform", function(tw, in_list){
             var x, y;
             tw.push(this);
-            x = tw.before(this, descend, in_list);
+            if (tw.before) x = tw.before(this, descend, in_list);
             if (x === undefined) {
                 if (!tw.after) {
                     x = this;