From db19dbd89dca472330e479d3caae259a127740e2 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 13 Feb 2013 16:35:48 +0400 Subject: [PATCH] fix typo in setTabSize --- lib/ace/edit_session.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index f802da0b..2c556409 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -461,21 +461,29 @@ var EditSession = function(text, mode) { * Pass `true` to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character (`'\t'`). * @param {Boolean} useSoftTabs Value indicating whether or not to use soft tabs **/ - this.setUseSoftTabs = function(val) { this.setOption("useSoftTabs", val); }; + this.setUseSoftTabs = function(val) { + this.setOption("useSoftTabs", val); + }; /** * Returns `true` if soft tabs are being used, `false` otherwise. * @returns {Boolean} **/ - this.getUseSoftTabs = function() { return this.$useSoftTabs; }; + this.getUseSoftTabs = function() { + return this.$useSoftTabs; + }; /** * Set the number of spaces that define a soft tab; for example, passing in `4` transforms the soft tabs to be equivalent to four spaces. This function also emits the `changeTabSize` event. * @param {Number} tabSize The new tab size **/ - this.setTabSize = function(tabSize) { this.setOption("tabSize", tabsSize) } + this.setTabSize = function(tabSize) { + this.setOption("tabSize", tabSize) + }; /** * Returns the current tab size. **/ - this.getTabSize = function() { return this.$tabSize; }; + this.getTabSize = function() { + return this.$tabSize; + }; /** * Returns `true` if the character at the position is a soft tab.