function initScroll() {
    sync = function () {
        window.clearTimeout(scrollTimer);
        var self = this;
        scrollTimer = window.setTimeout(function () {
            scroll(self);
        }, 300);
    };

    $('textarea#editor, article#previewValue').scroll(sync);
}
/**
 * Initialize sync scrolling #editor and #preview. After scroll wait 300 milisec and sync.
 */
Initialize sync scrolling #editor and #preview. After scroll wait 300 milisec and sync.
Initialize sync scrolling #editor and #preview . After scroll wait 300 milisec and sync .
function initScroll() {
    sync = function () {
        window.clearTimeout(scrollTimer);
        var self = this;
        scrollTimer = window.setTimeout(function () {
            scroll(self);
        }, 300);
    };
    $('textarea#editor, article#previewValue').scroll(sync);
}
function initScroll ( ) { sync = function ( ) { window . clearTimeout ( scrollTimer ) ; var self = this ; scrollTimer = window . setTimeout ( function ( ) { scroll ( self ) ; } , 300 ) ; } ; $ ( 'textarea#editor, article#previewValue' ) . scroll ( sync ) ; }
Initialize sync scrolling #editor and #preview.
Initialize sync scrolling #editor and #preview .