couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [37/50] [abbrv] couchdb commit: updated refs/heads/2041-update-ibrowse to 948e7d9
Date Fri, 07 Mar 2014 00:18:20 GMT
Remove editor reference to go to line 2 to stop browsers from crashing on people who have minified
index functions.


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

Branch: refs/heads/2041-update-ibrowse
Commit: e0b860d0f1e024c1fd691a643dc65a4aa5d302c1
Parents: 17a9763
Author: suelockwood <deathbear@apache.org>
Authored: Tue Feb 25 14:58:26 2014 -0500
Committer: suelockwood <deathbear@apache.org>
Committed: Tue Feb 25 14:58:36 2014 -0500

----------------------------------------------------------------------
 src/fauxton/app/addons/fauxton/components.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/e0b860d0/src/fauxton/app/addons/fauxton/components.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/fauxton/components.js b/src/fauxton/app/addons/fauxton/components.js
index 8b21916..39c213d 100644
--- a/src/fauxton/app/addons/fauxton/components.js
+++ b/src/fauxton/app/addons/fauxton/components.js
@@ -284,11 +284,11 @@ function(app, FauxtonAPI, ace, spin) {
     afterRender: function () {
       this.editor = ace.edit(this.editorId);
       this.setHeightToLineCount();
+      this.editor.getSession().setUseWorker(false);
       this.editor.setTheme("ace/theme/" + this.theme);
+
       this.editor.getSession().setMode("ace/mode/" + this.mode);
-      this.editor.getSession().setUseWrapMode(true);
       this.editor.setShowPrintMargin(false);
-      this.editor.gotoLine(2);
       this.addCommands();
 
       if (this.couchJSHINT) {
@@ -329,7 +329,8 @@ function(app, FauxtonAPI, ace, spin) {
     },
 
     getLines: function(){
-      return this.editor.getSession().getDocument().getLength();
+      return 5;
+     // return this.editor.getSession().getDocument().getLength();
     },
 
     addCommands: function () {


Mime
View raw message