diff options
author | Garren Smith <garren.smith@gmail.com> | 2014-04-14 15:37:21 +0200 |
---|---|---|
committer | Garren Smith <garren.smith@gmail.com> | 2014-04-14 15:37:21 +0200 |
commit | e528c0cbbb26f684fdff6147c2edf0806318ef42 (patch) | |
tree | 7d34856e8277c58f04f5767a8c1a579ebbcbd61f | |
parent | 0088f6cd731e978ec68fd5d0951e64ef605f416e (diff) | |
download | couchdb-e528c0cbbb26f684fdff6147c2edf0806318ef42.tar.gz |
Fauxton: Code cleanup
Remove old linted config
Add resizeColumns to app
-rw-r--r-- | src/fauxton/Gruntfile.js | 10 | ||||
-rw-r--r-- | src/fauxton/app/addons/fauxton/base.js | 2 | ||||
-rw-r--r-- | src/fauxton/app/addons/fauxton/resizeColumns.js | 1 |
3 files changed, 2 insertions, 11 deletions
diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js index 29111ebac..c650b9fac 100644 --- a/src/fauxton/Gruntfile.js +++ b/src/fauxton/Gruntfile.js @@ -147,16 +147,6 @@ module.exports = function(grunt) { watch: cleanableAddons }, - // The lint task will run the build configuration and the application - // JavaScript through JSHint and report any errors. You can change the - // options for this task, by reading this: - // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md - lint: { - files: [ - "build/config.js", "app/**/*.js" - ] - }, - less: { compile: { options: { diff --git a/src/fauxton/app/addons/fauxton/base.js b/src/fauxton/app/addons/fauxton/base.js index 7c5021132..29925e828 100644 --- a/src/fauxton/app/addons/fauxton/base.js +++ b/src/fauxton/app/addons/fauxton/base.js @@ -145,7 +145,7 @@ function(app, FauxtonAPI, resizeColumns) { initialize: function () { _.bindAll(this); //resizeAnimation - this.resizeColumns = new resizeColumns({}); + app.resizeColumns = this.resizeColumns = new resizeColumns({}); this.resizeColumns.onResizeHandler(); FauxtonAPI.extensions.on('add:navbar:addHeaderLink', this.addLink); diff --git a/src/fauxton/app/addons/fauxton/resizeColumns.js b/src/fauxton/app/addons/fauxton/resizeColumns.js index abfcd2f63..b08158020 100644 --- a/src/fauxton/app/addons/fauxton/resizeColumns.js +++ b/src/fauxton/app/addons/fauxton/resizeColumns.js @@ -75,6 +75,7 @@ function(FauxtonAPI) { } $(this.options.selectorElements).innerWidth(panelWidth); + } //if there is a callback, run that if(this.options.callback) { |