couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [4/50] [abbrv] git commit: Fix views page and minor lint changes
Date Mon, 11 Feb 2013 11:12:15 GMT
Fix views page and minor lint changes


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f55ae987
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f55ae987
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f55ae987

Branch: refs/heads/fauxton
Commit: f55ae987e37204a9e2c3b78f9dfbd5a36e915b73
Parents: 47f3d33
Author: Russell Branca <chewbranca@gmail.com>
Authored: Mon Jan 14 12:18:48 2013 -0500
Committer: Russell Branca <chewbranca@gmail.com>
Committed: Mon Jan 14 12:18:48 2013 -0500

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/views.js |    5 +----
 src/fauxton/grunt.js                       |    6 +++---
 2 files changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/f55ae987/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index 06da9ee..d942887 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -302,10 +302,6 @@ function(app, FauxtonAPI, Codemirror, JSHint) {
       "click button.save-doc": "saveDoc"
     },
 
-    initialize: function() {
-      this.model.on("sync", this.updateValues, this);
-    },
-
     updateValues: function() {
       notification = FauxtonAPI.addNotification({
         msg: "Document saved successfully.",
@@ -370,6 +366,7 @@ function(app, FauxtonAPI, Codemirror, JSHint) {
     },
 
     afterRender: function() {
+      this.model.on("sync", this.updateValues, this);
       var that = this;
       this.editor = Codemirror.fromTextArea(this.$el.find("textarea.doc-code").get()[0],
{
         mode: "application/json",

http://git-wip-us.apache.org/repos/asf/couchdb/blob/f55ae987/src/fauxton/grunt.js
----------------------------------------------------------------------
diff --git a/src/fauxton/grunt.js b/src/fauxton/grunt.js
index 8f95058..80f8f4b 100644
--- a/src/fauxton/grunt.js
+++ b/src/fauxton/grunt.js
@@ -11,7 +11,7 @@ module.exports = function(grunt) {
                 okay_if_missing: true
               }
             }
-  }
+  };
 
   grunt.initConfig({
 
@@ -267,13 +267,13 @@ module.exports = function(grunt) {
     },
 
     get_deps: {
-      default: {
+      "default": {
         src: "settings.json"
       }
     },
 
     gen_load_addons: {
-      default: {
+      "default": {
         src: "settings.json"
       }
     },


Mime
View raw message