dist/ZeroClipboard.js
function(elements) {
    if (!_clientMeta[this.id]) {
      throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");
    }
    elements = _prepClip(elements);
    for (var i = 0; i < elements.length; i++) {
      if (_hasOwn.call(elements, i) && elements[i] && elements[i].nodeType === 1) {
        if (!elements[i].zcClippingId) {
          elements[i].zcClippingId = "zcClippingId_" + _elementIdCounter++;
          _elementMeta[elements[i].zcClippingId] = [ this.id ];
          if (_globalConfig.autoActivate === true) {
            _addMouseHandlers(elements[i]);
          }
        } else if (_elementMeta[elements[i].zcClippingId].indexOf(this.id) === -1) {
          _elementMeta[elements[i].zcClippingId].push(this.id);
        }
        var clippedElements = _clientMeta[this.id] && _clientMeta[this.id].elements;
        if (clippedElements.indexOf(elements[i]) === -1) {
          clippedElements.push(elements[i]);
        }
      }
    }
    return this;
  }
function(elements) {
    if (!_clientMeta[this.id]) {
      throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");
    }
    elements = _prepClip(elements);
    for (var i = 0; i < elements.length; i++) {
      if (_hasOwn.call(elements, i) && elements[i] && elements[i].nodeType === 1) {
        if (!elements[i].zcClippingId) {
          elements[i].zcClippingId = "zcClippingId_" + _elementIdCounter++;
          _elementMeta[elements[i].zcClippingId] = [ this.id ];
          if (_globalConfig.autoActivate === true) {
            _addMouseHandlers(elements[i]);
          }
        } else if (_elementMeta[elements[i].zcClippingId].indexOf(this.id) === -1) {
          _elementMeta[elements[i].zcClippingId].push(this.id);
        }
        var clippedElements = _clientMeta[this.id] && _clientMeta[this.id].elements;
        if (clippedElements.indexOf(elements[i]) === -1) {
          clippedElements.push(elements[i]);
        }
      }
    }
    return this;
  }
function ( elements ) { if ( ! _clientMeta [ this . id ] ) { throw new Error ( "Attempted to clip element(s) to a destroyed ZeroClipboard client instance" ) ; } elements = _prepClip ( elements ) ; for ( var i = 0 ; i < elements . length ; i ++ ) { if ( _hasOwn . call ( elements , i ) && elements [ i ] && elements [ i ] . nodeType === 1 ) { if ( ! elements [ i ] . zcClippingId ) { elements [ i ] . zcClippingId = "zcClippingId_" + _elementIdCounter ++ ; _elementMeta [ elements [ i ] . zcClippingId ] = [ this . id ] ; if ( _globalConfig . autoActivate === true ) { _addMouseHandlers ( elements [ i ] ) ; } } else if ( _elementMeta [ elements [ i ] . zcClippingId ] . indexOf ( this . id ) === - 1 ) { _elementMeta [ elements [ i ] . zcClippingId ] . push ( this . id ) ; } var clippedElements = _clientMeta [ this . id ] && _clientMeta [ this . id ] . elements ; if ( clippedElements . indexOf ( elements [ i ] ) === - 1 ) { clippedElements . push ( elements [ i ] ) ; } } } return this ; }
The underlying implementation of `ZeroClipboard.Client.prototype.clip`.
@private
The underlying implementation of ZeroClipboard . Client . prototype . clip .