This commit is contained in:
nightwing 2014-10-17 15:45:42 +04:00
commit c97858705d
6 changed files with 15 additions and 11 deletions

View file

@ -1,3 +1,8 @@
* API Changes
- `editor.commands.commandKeyBinding` now contains direct map from keys to commands instead of grouping them by hashid
-
2014.09.21 Version 1.1.7 2014.09.21 Version 1.1.7
* Bugfixes * Bugfixes

View file

@ -201,7 +201,7 @@ var Anchor = exports.Anchor = function(doc, row, column) {
}; };
/** /**
* When called, the `'change'` event listener is removed. * When called, the `"change"` event listener is removed.
* *
**/ **/
this.detach = function() { this.detach = function() {

View file

@ -12,7 +12,7 @@ var EventEmitter = require("../lib/event_emitter").EventEmitter;
/** /**
* new CommandManager(platform, commands) * new CommandManager(platform, commands)
* @param {String} platform Identifier for the platform; must be either `'mac'` or `'win'` * @param {String} platform Identifier for the platform; must be either `"mac"` or `"win"`
* @param {Array} commands A list of commands * @param {Array} commands A list of commands
* *
**/ **/
@ -39,7 +39,7 @@ oop.inherits(CommandManager, MultiHashHandler);
return false; return false;
} }
if (typeof command === 'string') if (typeof command === "string")
command = this.commands[command]; command = this.commands[command];
if (!command) if (!command)

View file

@ -1601,7 +1601,7 @@ var EditSession = function(text, mode) {
* @private * @private
**/ **/
this.adjustWrapLimit = function(desiredLimit, $printMargin) { this.adjustWrapLimit = function(desiredLimit, $printMargin) {
var limits = this.$wrapLimitRange var limits = this.$wrapLimitRange;
if (limits.max < 0) if (limits.max < 0)
limits = {min: $printMargin, max: $printMargin}; limits = {min: $printMargin, max: $printMargin};
var wrapLimit = this.$constrainWrapLimit(desiredLimit, limits.min, limits.max); var wrapLimit = this.$constrainWrapLimit(desiredLimit, limits.min, limits.max);
@ -1725,7 +1725,7 @@ var EditSession = function(text, mode) {
var foldLine = this.getFoldLine(firstRow); var foldLine = this.getFoldLine(firstRow);
var idx = 0; var idx = 0;
if (foldLine) { if (foldLine) {
var cmp = foldLine.range.compareInside(start.row, start.column) var cmp = foldLine.range.compareInside(start.row, start.column);
// Inside of the foldLine range. Need to split stuff up. // Inside of the foldLine range. Need to split stuff up.
if (cmp == 0) { if (cmp == 0) {
foldLine = foldLine.split(start.row, start.column); foldLine = foldLine.split(start.row, start.column);
@ -2201,7 +2201,7 @@ var EditSession = function(text, mode) {
return { return {
row: maxRow, row: maxRow,
column: this.getLine(maxRow).length column: this.getLine(maxRow).length
} };
} else { } else {
line = this.getLine(docRow); line = this.getLine(docRow);
foldLine = null; foldLine = null;

View file

@ -150,7 +150,6 @@ exports.getMatchOffsets = function(string, regExp) {
/* deprecated */ /* deprecated */
exports.deferredCall = function(fcn) { exports.deferredCall = function(fcn) {
var timer = null; var timer = null;
var callback = function() { var callback = function() {
timer = null; timer = null;

View file

@ -156,9 +156,9 @@ oop.inherits(VScrollBar, ScrollBar);
* Sets the scroll top of the scroll bar. * Sets the scroll top of the scroll bar.
* @param {Number} scrollTop The new scroll top * @param {Number} scrollTop The new scroll top
**/ **/
// on chrome 17+ for small zoom levels after calling this function
// this.element.scrollTop != scrollTop which makes page to scroll up.
this.setScrollTop = function(scrollTop) { this.setScrollTop = function(scrollTop) {
// on chrome 17+ for small zoom levels after calling this function
// this.element.scrollTop != scrollTop which makes page to scroll up.
if (this.scrollTop != scrollTop) { if (this.scrollTop != scrollTop) {
this.skipEvent = true; this.skipEvent = true;
this.scrollTop = this.element.scrollTop = scrollTop; this.scrollTop = this.element.scrollTop = scrollTop;
@ -249,9 +249,9 @@ oop.inherits(HScrollBar, ScrollBar);
* Sets the scroll left of the scroll bar. * Sets the scroll left of the scroll bar.
* @param {Number} scrollTop The new scroll left * @param {Number} scrollTop The new scroll left
**/ **/
// on chrome 17+ for small zoom levels after calling this function
// this.element.scrollTop != scrollTop which makes page to scroll up.
this.setScrollLeft = function(scrollLeft) { this.setScrollLeft = function(scrollLeft) {
// on chrome 17+ for small zoom levels after calling this function
// this.element.scrollTop != scrollTop which makes page to scroll up.
if (this.scrollLeft != scrollLeft) { if (this.scrollLeft != scrollLeft) {
this.skipEvent = true; this.skipEvent = true;
this.scrollLeft = this.element.scrollLeft = scrollLeft; this.scrollLeft = this.element.scrollLeft = scrollLeft;