code: function remove(elem) {
          try {
              $(exports).triggerHandler('remove', [elem]);
          } catch (err) {
              console.error(err);
          }
          var writer = new Writer();
          elem.save(writer);
          _currentOperation.ops.push({op: OP_REMOVE, arg: writer.current});
      }
docs: Remove an element.
  
  @param {Element} elem