themes/default/public/scripts/ghostdown.js
function operation(cm1, f) {
    return function() {
      var cm = cm1 || this, withOp = !cm.curOp;
      if (withOp) startOperation(cm);
      try { var result = f.apply(cm, arguments); }
      finally { if (withOp) endOperation(cm); }
      return result;
    };
  }
function operation(cm1, f) {
    return function() {
      var cm = cm1 || this, withOp = !cm.curOp;
      if (withOp) startOperation(cm);
      try { var result = f.apply(cm, arguments); }
      finally { if (withOp) endOperation(cm); }
      return result;
    };
  }
function operation ( cm1 , f ) { return function ( ) { var cm = cm1 || this , withOp = ! cm . curOp ; if ( withOp ) startOperation ( cm ) ; try { var result = f . apply ( cm , arguments ) ; } finally { if ( withOp ) endOperation ( cm ) ; } return result ; } ; }
Wraps a function in an operation. Returns the wrapped function.
Wraps a function in an operation . Returns the wrapped function .