diff --git a/bower.json b/bower.json
index 012af5c..08604f0 100644
--- a/bower.json
+++ b/bower.json
@@ -1,5 +1,5 @@
{
- "name": "polymer-gui",
+ "name": "dat.gui",
"version": "0.0.0",
"description": "Attempt at revamping dat.gui with Polymer.",
"keywords": [
diff --git a/build/gui.html b/build/gui.html
index 869ccb9..ec1fa5d 100644
--- a/build/gui.html
+++ b/build/gui.html
@@ -19,11 +19,6 @@ var e,f,g,h=b.type;if("load"===h&&!b.bubbles){var i=c;i instanceof Q.Document&&(
-
+
+
+
diff --git a/elements/Gui.js b/elements/Gui.js
index 32d5863..8070824 100644
--- a/elements/Gui.js
+++ b/elements/Gui.js
@@ -1,10 +1,5 @@
(function( scope ) {
- var ready = false;
- var readyHandlers = [];
-
- var controllers = {};
-
var Gui = function( params ) {
if ( !ready ) {
@@ -29,6 +24,8 @@
// Register custom controllers
// -------------------------------
+ var controllers = {};
+
Gui.register = function( elementName, test ) {
controllers[ elementName ] = test;
@@ -59,6 +56,9 @@
// Gui ready handler ... * shakes fist at polymer *
// -------------------------------
+ var ready = false;
+ var readyHandlers = [];
+
document.addEventListener( 'polymer-ready', function() {
ready = true;
diff --git a/elements/controller-base/controller-base.js b/elements/controller-base/controller-base.js
index 312fefc..bb8da26 100644
--- a/elements/controller-base/controller-base.js
+++ b/elements/controller-base/controller-base.js
@@ -26,13 +26,14 @@ Polymer('controller-base', {
this.object = object;
this.path = path;
+
+ this.bind('value', new PathObserver(this.object, this.path));
+
// if ( this._observer ) {
// this._observer.close();
// delete this._observer;
// }
- this.bind('value', new PathObserver(this.object, this.path));
-
// var _this = this;
// this._observer = new PathObserver( this.object, this.path );
diff --git a/elements/gui-panel/gui-panel.styl b/elements/gui-panel/gui-panel.styl
index 3ac30a7..11f0c9f 100644
--- a/elements/gui-panel/gui-panel.styl
+++ b/elements/gui-panel/gui-panel.styl
@@ -24,6 +24,7 @@
}
&.open-false {
+
}
}
diff --git a/gulpfile.js b/gulpfile.js
index e7ef1c4..3456f59 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -69,7 +69,6 @@ gulp.task( 'default', function() {
gulp.watch( [ paths.js, paths.main, paths.html ], [ 'vulcanize', 'test' ] );
gulp.watch( [ 'README.md', 'docs/*' ], [ 'docs' ] );
-
} );
diff --git a/index.html b/index.html
index 233490e..666b30c 100644
--- a/index.html
+++ b/index.html
@@ -14,6 +14,7 @@
+
dat-gui
dat-gui creates an interface that you can use to modify variables with very little code.
Basic Usage
@@ -182,9 +183,7 @@ Gui.register( 'controller-number', function( value ) {
<script src="gui.js"></script>
<script src="gui-three.js"></script>
-
-
-
+
diff --git a/package.json b/package.json
index 5d075be..cb3df8e 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "polymer-gui",
+ "name": "dat.gui",
"version": "0.0.0",
"devDependencies": {
"gulp": "^3.8.7",