public/javascripts/codemirror/js/editor.js
function(passTime) {
      var self = this, pos = null;
      return function() {
        // FF timeout weirdness workaround.
        if (!window.select) return;
        // If the current node is no longer in the document... oh
        // well, we start over.
        if (pos && pos.parentNode != self.container)
          pos = null;
        select.markSelection(self.win);
        var result = self.highlight(pos, time() + passTime, true);
        select.selectMarked();
        var newPos = result ? (result.node && result.node.nextSibling) : null;
        pos = (pos == newPos) ? null : newPos;
        self.delayScanning();
      };
    }
function(passTime) {
      var self = this, pos = null;
      return function() {
        // FF timeout weirdness workaround.
        if (!window.select) return;
        // If the current node is no longer in the document... oh
        // well, we start over.
        if (pos && pos.parentNode != self.container)
          pos = null;
        select.markSelection(self.win);
        var result = self.highlight(pos, time() + passTime, true);
        select.selectMarked();
        var newPos = result ? (result.node && result.node.nextSibling) : null;
        pos = (pos == newPos) ? null : newPos;
        self.delayScanning();
      };
    }
function ( passTime ) { var self = this , pos = null ; return function ( ) { // FF timeout weirdness workaround. if ( ! window . select ) return ; // If the current node is no longer in the document... oh // well, we start over. if ( pos && pos . parentNode != self . container ) pos = null ; select . markSelection ( self . win ) ; var result = self . highlight ( pos , time ( ) + passTime , true ) ; select . selectMarked ( ) ; var newPos = result ? ( result . node && result . node . nextSibling ) : null ; pos = ( pos == newPos ) ? null : newPos ; self . delayScanning ( ) ; } ; }
Creates a function that, when called through a timeout, will continuously re-parse the document.
Creates a function that when called through a timeout will continuously re - parse the document .