浏览代码

NodeLib: Clean up

Mugen87 6 年之前
父节点
当前提交
adf90cf160
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      examples/jsm/nodes/core/NodeLib.js

+ 4 - 4
examples/jsm/nodes/core/NodeLib.js

@@ -39,9 +39,9 @@ var NodeLib = {
 
 	},
 
-	getKeyword: function ( name, material ) {
+	getKeyword: function ( name, builder ) {
 
-		return this.keywords[ name ].callback.call( this, material );
+		return this.keywords[ name ].callback.call( this, builder );
 
 	},
 
@@ -53,13 +53,13 @@ var NodeLib = {
 
 	contains: function ( name ) {
 
-		return this.nodes[ name ] != undefined;
+		return this.nodes[ name ] !== undefined;
 
 	},
 
 	containsKeyword: function ( name ) {
 
-		return this.keywords[ name ] != undefined;
+		return this.keywords[ name ] !== undefined;
 
 	}