This commit is contained in:
Fabian Jakobs 2011-12-13 12:21:47 +01:00
commit 3b01eb9bac
2 changed files with 2 additions and 4 deletions

View file

@ -63,7 +63,7 @@ exports.commands = [{
name: "gotoline",
bindKey: bindKey("Ctrl-L", "Command-L"),
exec: function(editor) {
var line = parseInt(prompt("Enter line number:"));
var line = parseInt(prompt("Enter line number:"), 10);
if (!isNaN(line)) {
editor.gotoLine(line);
}

View file

@ -39,7 +39,6 @@
define(function(require, exports, module) {
var oop = require("./lib/oop");
var dom = require("./lib/dom");
var lang = require("./lib/lang");
var EventEmitter = require("./lib/event_emitter").EventEmitter;
@ -76,7 +75,6 @@ var Split = function(container, theme, splits) {
el.className = this.$editorCSS;
el.style.cssText = "position: absolute; top:0px; bottom:0px";
this.$container.appendChild(el);
var session = new EditSession("");
var editor = new Editor(new Renderer(el, this.$theme));
editor.on("focus", function() {
@ -189,7 +187,7 @@ var Split = function(container, theme, splits) {
};
this.setSession = function(session, idx) {
var editor
var editor;
if (idx == null) {
editor = this.$cEditor;
} else {