浏览代码

StrucNode: Add missing this keyword

Tristan VALCKE 6 年之前
父节点
当前提交
c191fc7bd5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/nodes/core/StructNode.js

+ 1 - 1
examples/js/nodes/core/StructNode.js

@@ -49,7 +49,7 @@ StructNode.prototype.generate = function ( builder, output ) {
 
 	} else {
 
-		return builder.format( '( ' + src + ' )', this.getType( builder ), output );
+		return builder.format( '( ' + this.src + ' )', this.getType( builder ), output );
 
 	}