| 13424 | }) |
| 13425 | |
| 13426 | function Completion(cm, options) { |
| 13427 | this.cm = cm |
| 13428 | this.options = options |
| 13429 | this.widget = null |
| 13430 | this.debounce = 0 |
| 13431 | this.tick = 0 |
| 13432 | this.startPos = this.cm.getCursor("start") |
| 13433 | this.startLen = this.cm.getLine(this.startPos.line).length - this.cm.getSelection().length |
| 13434 | |
| 13435 | var self = this |
| 13436 | cm.on( |
| 13437 | "cursorActivity", |
| 13438 | (this.activityFunc = function () { |
| 13439 | self.cursorActivity() |
| 13440 | }) |
| 13441 | ) |
| 13442 | } |
| 13443 | |
| 13444 | var requestAnimationFrame = |
| 13445 | window.requestAnimationFrame || |