Explorar el Código

Editor: Define LocalStorage key in Config.

Mr.doob hace 7 años
padre
commit
cc293def63
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  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 );