浏览代码

code style

sunag 5 年之前
父节点
当前提交
ef45f9f316
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      examples/jsm/nodes/core/Node.js

+ 5 - 5
examples/jsm/nodes/core/Node.js

@@ -107,11 +107,11 @@ Node.prototype = {
 		var hash = '{';
 		var prop, obj;
 
-		for(prop in this) {
+		for ( prop in this ) {
 
 			obj = this[ prop ];
 
-			if (obj instanceof Node) {
+			if ( obj instanceof Node ) {
 
 				hash += '"' + prop + '":' + obj.getHash() + ',';
 
@@ -119,9 +119,9 @@ Node.prototype = {
 
 		}
 
-		if (this.hashProperties) {
+		if ( this.hashProperties ) {
 
-			for(var i = 0; i < this.hashProperties.length; i++) {
+			for ( var i = 0; i < this.hashProperties.length; i ++ ) {
 
 				prop = this.hashProperties[ i ];
 				obj = this[ prop ];
@@ -134,7 +134,7 @@ Node.prototype = {
 
 		hash += '"id":"' + this.uuid + '"}';
 
-		return hash;		
+		return hash;
 
 	},