This commit is contained in:
Garen Torikian 2012-12-26 00:58:20 -08:00 • committed by nightwing
commit 4d474bcdaf
4 changed files with 50 additions and 27 deletions

View file

@ -492,7 +492,7 @@ var Editor = function(renderer, session) {
if (session.$highlightLineMarker && !highlight) {
session.removeMarker(session.$highlightLineMarker.id);
session.$highlightLineMarker = null;
session.$highlightLineMarker = null;
} else if (!session.$highlightLineMarker && highlight) {
session.$highlightLineMarker = session.highlightLines(highlight.row, highlight.row, "ace_active-line");
} else if (highlight) {
@ -793,7 +793,7 @@ var Editor = function(renderer, session) {
/**
* Sets how fast the mouse scrolling should do.
* @param {Number} speed A value indicating the new speed
* @param {Number} speed A value indicating the new speed (in milliseconds)
*
*
*
@ -803,7 +803,7 @@ var Editor = function(renderer, session) {
};
/**
* Returns the value indicating how fast the mouse scroll speed is.
* Returns the value indicating how fast the mouse scroll speed is (in milliseconds).
* @returns {Number}
**/
this.getScrollSpeed = function() {
@ -842,7 +842,10 @@ var Editor = function(renderer, session) {
/**
* Indicates how selections should occur.
*
* By default, selections are set to "line". This function also emits the `'changeSelectionStyle'` event.
* By default, selections are set to "line". There are no other styles at the moment,
* although this code change in the future.
*
* This function also emits the `'changeSelectionStyle'` event.
*
* @param {String} style The new selection style
*
@ -870,8 +873,6 @@ var Editor = function(renderer, session) {
* Determines whether or not the current line should be highlighted.
* @param {Boolean} shouldHighlight Set to `true` to highlight the current line
*
*
*
**/
this.setHighlightActiveLine = function(shouldHighlight) {
if (this.$highlightActiveLine == shouldHighlight)
@ -1039,11 +1040,10 @@ var Editor = function(renderer, session) {
this.$modeWrapBehaviours = true;
/**
* Editor.setWrapBehavioursEnabled(enabled)
* - enabled (Boolean): Enables or disables wrapping behaviors
*
* Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets
* when such a character is typed in.
* @param {Boolean} enabled Enables or disables wrapping behaviors
*
**/
this.setWrapBehavioursEnabled = function (enabled) {
this.$modeWrapBehaviours = enabled;

View file

@ -245,6 +245,7 @@ var Selection = function(session) {
*
*
* @method setSelectionRange
* @alias setRange
**/
this.setRange =
this.setSelectionRange = function(range, reverse) {