# all files / Github/diagram-js/lib/features/clipboard/ Clipboard.js

100% Statements 10/10
100% Branches 0/0
100% Functions 5/5
100% Lines 10/10

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25

    1×
    24×

    1×
    25×

    1×
    2×

    2×

    2×

    1×
    24×
     /**
     * A clip board stub
     */
    export default function Clipboard() {}

    Clipboard.prototype.get = function() {
      return this._data;
    };

    Clipboard.prototype.set = function(data) {
      this._data = data;
    };

    Clipboard.prototype.clear = function() {
      var data = this._data;

      delete this._data;

      return data;
    };

    Clipboard.prototype.isEmpty = function() {
      return !this._data;
    };