소스 검색

Editor: Define LocalStorage key in Config.

Mr.doob 7 년 전
부모
커밋
cc293def63
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      editor/js/Config.js
  2. 1 1
      editor/js/Editor.js

+ 3 - 1
editor/js/Config.js

@@ -2,7 +2,9 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-var Config = function ( name ) {
+var Config = function () {
+
+	var name = 'threejs-editor';
 
 	var storage = {
 		'autosave': true,

+ 1 - 1
editor/js/Editor.js

@@ -72,7 +72,7 @@ var Editor = function () {
 
 	};
 
-	this.config = new Config( 'threejs-editor' );
+	this.config = new Config();
 	this.history = new History( this );
 	this.storage = new Storage();
 	this.loader = new Loader( this );