From 74f284b4b9044d6a454278fa3714fba4f9da5536 Mon Sep 17 00:00:00 2001 From: Doug Fritz Date: Sun, 7 Sep 2014 17:55:18 -0700 Subject: [PATCH 1/2] switch from gulp-clean which is depricated to gulp-rimraf --- gulpfile.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 05b87ac..4d1b852 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -88,7 +88,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 ec722de..126d265 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "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", @@ -14,6 +13,7 @@ "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", From edf85c342c56baf62ec581c701bafca30e0a3af1 Mon Sep 17 00:00:00 2001 From: Doug Fritz Date: Sun, 7 Sep 2014 18:27:32 -0700 Subject: [PATCH 2/2] removed use strict --- build/gui.html | 26 +++++++++---------- build/gui.js | 26 +++++++++---------- docs/examples.js | 10 +++---- elements/Gui.js | 2 +- elements/controller-base/controller-base.js | 2 +- .../controller-boolean/controller-boolean.js | 2 +- .../controller-function.js | 2 +- .../controller-number/controller-number.js | 2 +- .../controller-option/controller-option.js | 2 +- .../controller-string/controller-string.js | 2 +- elements/gui-panel/gui-panel.js | 2 +- elements/gui-row/gui-row.js | 2 +- 12 files changed, 40 insertions(+), 40 deletions(-) diff --git a/build/gui.html b/build/gui.html index d22604f..72204bb 100644 --- a/build/gui.html +++ b/build/gui.html @@ -1,21 +1,21 @@ - + - + - + - - - - + + + + \ No newline at end of file diff --git a/build/gui.js b/build/gui.js index 122e9b0..b1f160d 100644 --- a/build/gui.js +++ b/build/gui.js @@ -1,21 +1,21 @@ -document.write(['', +document.write(['', '', '', -'', +'', '', '', -'', +'', '', '', '', -'', -'', -'', -'', +'', +'', +'', +'', '',].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 a8bda49..2f44f52 100644 --- a/elements/Gui.js +++ b/elements/Gui.js @@ -1,5 +1,5 @@ (function(scope) { - 'use strict'; + var Gui = function(params) { diff --git a/elements/controller-base/controller-base.js b/elements/controller-base/controller-base.js index 8846ec8..7559eac 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'; + /* diff --git a/elements/controller-boolean/controller-boolean.js b/elements/controller-boolean/controller-boolean.js index ae1c1f9..789f47b 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) { diff --git a/elements/controller-function/controller-function.js b/elements/controller-function/controller-function.js index c7fa1f6..b621559 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 76bbfad..3f9ea32 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 978cd9b..e240255 100644 --- a/elements/controller-option/controller-option.js +++ b/elements/controller-option/controller-option.js @@ -54,4 +54,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 b85fdd0..a833c82 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 fad01d7..4f30fc7 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 diff --git a/elements/gui-row/gui-row.js b/elements/gui-row/gui-row.js index 5a1a8e3..e2641dc 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', {