Fixed some minor issues and removed some spurious
comments
This commit is contained in:
parent
6d73a44c9a
commit
f222d0e649
5 changed files with 9 additions and 8 deletions
|
|
@ -80,7 +80,7 @@ return {
|
||||||
"selectlinestart": "Shift-Home",
|
"selectlinestart": "Shift-Home",
|
||||||
"selectlineend": "Shift-End",
|
"selectlineend": "Shift-End",
|
||||||
"del": "Delete",
|
"del": "Delete",
|
||||||
"backspace": "Backspace",
|
"backspace": "Ctrl-Backspace|Command-Backspace|Option-Backspace|Backspace",
|
||||||
"outdent": "Shift-Tab",
|
"outdent": "Shift-Tab",
|
||||||
"indent": "Tab"
|
"indent": "Tab"
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -48,16 +48,17 @@ var RenderLoop = function(onRender) {
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
this.schedule = function(change) {
|
this.schedule = function(change) {
|
||||||
// this.onRender(change);
|
//this.onRender(change);
|
||||||
// return;
|
//return;
|
||||||
this.changes = this.changes | change;
|
this.changes = this.changes | change;
|
||||||
if (!this.pending) {
|
if (!this.pending) {
|
||||||
this.pending = true;
|
this.pending = true;
|
||||||
var _self = this;
|
var _self = this;
|
||||||
this.setTimeoutZero(function() {
|
this.setTimeoutZero(function() {
|
||||||
_self.pending = false;
|
_self.pending = false;
|
||||||
_self.onRender(_self.changes);
|
var changes = _self.changes;
|
||||||
_self.changes = 0;
|
_self.changes = 0;
|
||||||
|
_self.onRender(changes);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue