Merge branch 'master' of https://github.com/ajaxorg/ace
Conflicts: lib/ace/scrollbar.js lib/ace/virtual_renderer.js
This commit is contained in:
commit
1e01007990
6 changed files with 10 additions and 9 deletions
|
|
@ -48,16 +48,17 @@ var RenderLoop = function(onRender) {
|
|||
(function() {
|
||||
|
||||
this.schedule = function(change) {
|
||||
// this.onRender(change);
|
||||
// return;
|
||||
//this.onRender(change);
|
||||
//return;
|
||||
this.changes = this.changes | change;
|
||||
if (!this.pending) {
|
||||
this.pending = true;
|
||||
var _self = this;
|
||||
this.setTimeoutZero(function() {
|
||||
_self.pending = false;
|
||||
_self.onRender(_self.changes);
|
||||
var changes = _self.changes;
|
||||
_self.changes = 0;
|
||||
_self.onRender(changes);
|
||||
})
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue