fix typo in setTabSize

This commit is contained in:
nightwing 2013-02-13 16:35:48 +04:00
commit db19dbd89d

View file

@ -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.