diff --git a/build/gui.html b/build/gui.html
index fbd913d..756f629 100644
--- a/build/gui.html
+++ b/build/gui.html
@@ -10,12 +10,12 @@ var e,f,g,h=b.type;if("load"===h&&!b.bubbles){var i=c;i instanceof Q.Document&&(
+},_register:function(){c(this.extends)&&!b(this.extends)&&console.warn("%s is attempting to extend %s, an unregistered element or one that was not registered with Polymer.",this.name,this.extends),this.register(this.name,this.extends),this.registered=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNoScript(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.noscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return this._needsResources},waitingForQueue:function(){return f.enqueue(this,this.registerWhenReady,this._register)},loadResources:function(){this._needsResources=!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),function(){var a=document.createElement("polymer-element");a.setAttribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Object.create(Polymer.api.declaration.events),b=this;a.findController=function(){return b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareBinding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}})}();
undefined
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/build/gui.js b/build/gui.js
index 01a98e3..9089f01 100644
--- a/build/gui.js
+++ b/build/gui.js
@@ -10,12 +10,12 @@ var e,f,g,h=b.type;if("load"===h&&!b.bubbles){var i=c;i instanceof Q.Document&&(
+},_register:function(){c(this.extends)&&!b(this.extends)&&console.warn("%s is attempting to extend %s, an unregistered element or one that was not registered with Polymer.",this.name,this.extends),this.register(this.name,this.extends),this.registered=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNoScript(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.noscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return this._needsResources},waitingForQueue:function(){return f.enqueue(this,this.registerWhenReady,this._register)},loadResources:function(){this._needsResources=!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),function(){var a=document.createElement("polymer-element");a.setAttribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Object.create(Polymer.api.declaration.events),b=this;a.findController=function(){return b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareBinding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}})}();
undefined
-
-
-
-
+
+
+
+
].join( "\n" ) )
\ No newline at end of file
diff --git a/docs/examples.js b/docs/examples.js
index 4b8d96f..2a0334a 100644
--- a/docs/examples.js
+++ b/docs/examples.js
@@ -1,20 +1,20 @@
var examples = {};
examples[ 'default' ] = function() {
-
+
var gui = new Gui();
- gui.anon( 'hi', 'todo' );
+ //gui.anon( 'hi', 'todo' );
return gui;
}
// "basic-usage", "limiting-input", "color-controllers", "events", "folders-comments", "saving-values", "presets", "save-to-disk", "custom-placement", "defining-custom-controllers", "publishing-custom-controllers"
examples[ 'basic-usage' ] = function() {
-
+
var gui = new Gui();
var object = {
- numberProperty: 0,
+ numberProperty: 0,
stringProperty: 'hey',
booleanProperty: false,
functionProperty: function() {
@@ -29,4 +29,4 @@ examples[ 'basic-usage' ] = function() {
return gui;
-};
\ No newline at end of file
+};
diff --git a/elements/Gui.js b/elements/Gui.js
index f06f9df..18c1152 100644
--- a/elements/Gui.js
+++ b/elements/Gui.js
@@ -139,4 +139,4 @@
scope.Gui = Gui;
-} )( this );
\ No newline at end of file
+} )( this );
diff --git a/elements/controller-base/controller-base.js b/elements/controller-base/controller-base.js
index 7d05ce2..383f992 100644
--- a/elements/controller-base/controller-base.js
+++ b/elements/controller-base/controller-base.js
@@ -1,5 +1,5 @@
/* globals Gui, Polymer, PathObserver */
-'use strict';
+
// [ ] onFinishChange()
diff --git a/elements/controller-boolean/controller-boolean.js b/elements/controller-boolean/controller-boolean.js
index 4f659aa..cc4acd0 100644
--- a/elements/controller-boolean/controller-boolean.js
+++ b/elements/controller-boolean/controller-boolean.js
@@ -1,5 +1,5 @@
/* globals Gui, Polymer */
-'use strict';
+
Gui.register( 'controller-boolean', function( value ) {
@@ -19,4 +19,4 @@ Polymer( 'controller-boolean', {
}
-} );
\ No newline at end of file
+} );
diff --git a/elements/controller-function/controller-function.js b/elements/controller-function/controller-function.js
index 665db39..7a01575 100644
--- a/elements/controller-function/controller-function.js
+++ b/elements/controller-function/controller-function.js
@@ -1,5 +1,5 @@
/* globals Gui, Polymer */
-'use strict';
+
Gui.register( 'controller-function', function( value ) {
diff --git a/elements/controller-number/controller-number.js b/elements/controller-number/controller-number.js
index 39ec601..a95e0be 100644
--- a/elements/controller-number/controller-number.js
+++ b/elements/controller-number/controller-number.js
@@ -1,5 +1,5 @@
/* globals Gui, Polymer */
-'use strict';
+
/*
diff --git a/elements/controller-option/controller-option.js b/elements/controller-option/controller-option.js
index 8fa27bc..0472b92 100644
--- a/elements/controller-option/controller-option.js
+++ b/elements/controller-option/controller-option.js
@@ -60,4 +60,4 @@ Polymer( 'controller-option', {
}
-} );
\ No newline at end of file
+} );
diff --git a/elements/controller-string/controller-string.js b/elements/controller-string/controller-string.js
index 45a977b..612deaf 100644
--- a/elements/controller-string/controller-string.js
+++ b/elements/controller-string/controller-string.js
@@ -1,5 +1,5 @@
/* globals Gui, Polymer */
-'use strict';
+
Gui.register( 'controller-string', function( value ) {
diff --git a/elements/gui-panel/gui-panel.js b/elements/gui-panel/gui-panel.js
index 61a1ad4..98aa54c 100644
--- a/elements/gui-panel/gui-panel.js
+++ b/elements/gui-panel/gui-panel.js
@@ -1,5 +1,5 @@
/* globals Polymer, Path, Gui */
-'use strict';
+
// [ ] scrolling when docked
// [ ] scrolling when window short and not docked
@@ -141,4 +141,4 @@ Polymer( 'gui-panel', {
}
-} );
\ No newline at end of file
+} );
diff --git a/elements/gui-row/gui-row.js b/elements/gui-row/gui-row.js
index 7a89cbe..10898d8 100644
--- a/elements/gui-row/gui-row.js
+++ b/elements/gui-row/gui-row.js
@@ -1,5 +1,5 @@
/* globals Polymer */
-'use strict';
+
Polymer( 'gui-row', {
diff --git a/gulpfile.js b/gulpfile.js
index 394d705..462dff2 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -12,7 +12,7 @@ gulp.task( 'default', ['docs', 'build'] )
gulp.task( 'watch', ['default'], function() {
karma.server.start( {
- frameworks: ['jasmine'],
+ frameworks: [ 'jasmine' ],
files: [
'build/gui.js',
'tests/*.js'
@@ -93,7 +93,7 @@ gulp.task( 'docs', function() {
gulp.task( 'clean', function() {
return gulp.src( ['build/*', '**/*.css'] )
- .pipe( $.clean() );
+ .pipe( $.rimraf() );
} );
diff --git a/package.json b/package.json
index 6722532..126d265 100644
--- a/package.json
+++ b/package.json
@@ -1,27 +1,27 @@
{
- "name": "dat.gui",
- "version": "0.0.0",
- "devDependencies": {
- "browser-sync": "^1.3.6",
- "gulp": "^3.8.7",
- "gulp-clean": "^0.3.1",
- "gulp-if": "^1.2.4",
- "gulp-insert": "^0.4.0",
- "gulp-jscs": "^1.1.2",
- "gulp-jshint": "^1.8.4",
- "gulp-load-plugins": "^0.6.0",
- "gulp-plates": "0.0.5",
- "gulp-reload": "0.0.4",
- "gulp-rename": "^1.2.0",
- "gulp-replace": "^0.4.0",
- "gulp-stylus": "^1.3.0",
- "gulp-vulcanize": "^1.0.0",
- "gulp-watch": "^0.6.9",
- "jshint-stylish": "^0.4.0",
- "karma": "^0.12.23",
- "karma-chrome-launcher": "^0.1.4",
- "karma-jasmine": "^0.1.5",
- "marked": "^0.3.2",
- "nib": "^1.0.3"
- }
+ "name": "dat.gui",
+ "version": "0.0.0",
+ "devDependencies": {
+ "browser-sync": "^1.3.6",
+ "gulp": "^3.8.7",
+ "gulp-if": "^1.2.4",
+ "gulp-insert": "^0.4.0",
+ "gulp-jscs": "^1.1.2",
+ "gulp-jshint": "^1.8.4",
+ "gulp-load-plugins": "^0.6.0",
+ "gulp-plates": "0.0.5",
+ "gulp-reload": "0.0.4",
+ "gulp-rename": "^1.2.0",
+ "gulp-replace": "^0.4.0",
+ "gulp-rimraf": "^0.1.0",
+ "gulp-stylus": "^1.3.0",
+ "gulp-vulcanize": "^1.0.0",
+ "gulp-watch": "^0.6.9",
+ "jshint-stylish": "^0.4.0",
+ "karma": "^0.12.23",
+ "karma-chrome-launcher": "^0.1.4",
+ "karma-jasmine": "^0.1.5",
+ "marked": "^0.3.2",
+ "nib": "^1.0.3"
+ }
}