Update to new panino, fix doc bugs

This commit is contained in:
Garen Torikian 2012-08-24 11:14:23 -07:00
commit 1846f3c9ba
29 changed files with 1055 additions and 17529 deletions

View file

@ -207,7 +207,7 @@ var BackgroundTokenizer = function(tokenizer, editor) {
/**
* BackgroundTokenizer.getTokens(row) -> [Object]
* - firstRow (Number): The row to get tokens at
* - row (Number): The row to get tokens at
*
* Gives list of tokens of the row. (tokens are cached)
*

View file

@ -2264,7 +2264,6 @@ var EditSession = function(text, mode) {
* Converts document coordinates to screen coordinates. {:conversionConsiderations}
*
*
*
**/
this.documentToScreenPosition = function(docRow, docColumn) {
// Normalize the passed in arguments.

View file

@ -42,34 +42,9 @@ define(function(require, exports, module) {
var TokenIterator = require("../token_iterator").TokenIterator;
var Range = require("../range").Range;
/**
* class BracketMatch
*
*
*
*
**/
/**
* new BracketMatch(position)
* - platform (String): Identifier for the platform; must be either `'mac'` or `'win'`
* - commands (Array): A list of commands
*
* TODO
*
*
**/
function BracketMatch() {
/**
* new findMatchingBracket(position)
* - position (Number): Identifier for the platform; must be either `'mac'` or `'win'`
* - commands (Array): A list of commands
*
* TODO
*
*
**/
this.findMatchingBracket = function(position) {
if (position.column == 0) return null;

View file

@ -236,9 +236,9 @@ var Editor = function(renderer, session) {
};
/** related to: Document.setValue
* Editor.setValue(val [,dontSelect]) -> String
* Editor.setValue(val [,cursorPos]) -> String
* - val (String): The new value to set for the document
* - cursorPos (Number): 0: selectAll, -1 document start, 1 end
* - cursorPos (Number): Where to set the new value. `undefined` or 0 is selectAll, -1 is at the document start, and 1 is at the end
*
* Sets the current document to `val`.
**/

View file

@ -248,11 +248,11 @@ var EditSession = require("./edit_session").EditSession;
* Selection.rectangularRangeBlock(screenCursor, screenAnchor, includeEmptyLines) -> Range
* - screenCursor (Cursor): The cursor to use
* - screenAnchor (Anchor): The anchor to use
* - includeEmptyLins (Boolean): If true, this includes ranges inside the block which are empty due to clipping
* - includeEmptyLines (Boolean): If true, this includes ranges inside the block which are empty due to clipping
*
* Gets list of ranges composing rectangular block on the screen
*
*/
**/
this.rectangularRangeBlock = function(screenCursor, screenAnchor, includeEmptyLines) {
var rectSel = [];

View file

@ -98,7 +98,7 @@ var Selection = function(session) {
));
};
/**
/** extension
* Selection.isMultiLine() -> Boolean
*
* Returns `true` if the selection is a multi-line.
@ -111,7 +111,7 @@ var Selection = function(session) {
return this.getRange().isMultiLine();
};
/**
/** extension
* Selection.getCursor() -> Number
*
* Gets the current position of the cursor.
@ -200,7 +200,7 @@ var Selection = function(session) {
/**
* Selection.getRange() -> Range
*
* [Returns the [[Range `Range`]] for the selected text.]{: #Selection.getRange}
* [Returns the [[Range]] for the selected text.]{: #Selection.getRange}
**/
this.getRange = function() {
var anchor = this.anchor;