dist/crocodoc.viewer.js
function updateDragger(isDraggable) {
        if (isDraggable) {
            if (!dragger) {
                $el.addClass(CSS_CLASS_DRAGGABLE);
                dragger = scope.createComponent('dragger');
                dragger.init(config.$viewport);
            }
        } else {
            if (dragger) {
                $el.removeClass(CSS_CLASS_DRAGGABLE);
                scope.destroyComponent(dragger);
                dragger = null;
            }
        }
    }
function updateDragger(isDraggable) {
        if (isDraggable) {
            if (!dragger) {
                $el.addClass(CSS_CLASS_DRAGGABLE);
                dragger = scope.createComponent('dragger');
                dragger.init(config.$viewport);
            }
        } else {
            if (dragger) {
                $el.removeClass(CSS_CLASS_DRAGGABLE);
                scope.destroyComponent(dragger);
                dragger = null;
            }
        }
    }
function updateDragger ( isDraggable ) { if ( isDraggable ) { if ( ! dragger ) { $el . addClass ( CSS_CLASS_DRAGGABLE ) ; dragger = scope . createComponent ( 'dragger' ) ; dragger . init ( config . $viewport ) ; } } else { if ( dragger ) { $el . removeClass ( CSS_CLASS_DRAGGABLE ) ; scope . destroyComponent ( dragger ) ; dragger = null ; } } }
Enable or disable the dragger given the `isDraggable` flag
@param   {Boolean} isDraggable Whether or not the layout is draggable
@returns {void}
@private
Enable or disable the dragger given the isDraggable flag