couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [11/50] [abbrv] git commit: Declare all variables in newDatabase at top of function
Date Mon, 11 Feb 2013 11:12:15 GMT
Declare all variables in newDatabase at top of function


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

Branch: refs/heads/fauxton
Commit: c2163349bdcd0454f8d0d1b2dccf4509eaff2bf0
Parents: c585708
Author: Mike Wallace <mikewallace1979@googlemail.com>
Authored: Mon Jan 21 13:15:30 2013 +0000
Committer: Mike Wallace <mikewallace1979@googlemail.com>
Committed: Mon Jan 21 13:15:30 2013 +0000

----------------------------------------------------------------------
 src/fauxton/app/modules/databases/views.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/c2163349/src/fauxton/app/modules/databases/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/databases/views.js b/src/fauxton/app/modules/databases/views.js
index b069b85..fb4f608 100644
--- a/src/fauxton/app/modules/databases/views.js
+++ b/src/fauxton/app/modules/databases/views.js
@@ -99,6 +99,7 @@ function(app, FauxtonAPI) {
 
     newDatabase: function() {
       var notification;
+      var db;
       // TODO: use a modal here instead of the prompt
       var name = prompt('Name of database', 'newdatabase');
       if (name === null) {
@@ -111,7 +112,7 @@ function(app, FauxtonAPI) {
         });
         return;
       }
-      var db = new this.collection.model({
+      db = new this.collection.model({
         id: encodeURIComponent(name),
         name: name
       });


Mime
View raw message