dist/ZeroClipboard.js
function() {
    var maxWait, swfProtocol, previousState = _flashState.sandboxed;
    if (!_isBrowserSupported()) {
      _flashState.ready = false;
      ZeroClipboard.emit({
        type: "error",
        name: "browser-unsupported"
      });
      return;
    }
    _detectSandbox();
    if (typeof _flashState.ready !== "boolean") {
      _flashState.ready = false;
    }
    if (_flashState.sandboxed !== previousState && _flashState.sandboxed === true) {
      _flashState.ready = false;
      ZeroClipboard.emit({
        type: "error",
        name: "flash-sandboxed"
      });
    } else if (!ZeroClipboard.isFlashUnusable() && _flashState.bridge === null) {
      swfProtocol = _getSwfPathProtocol();
      if (swfProtocol && swfProtocol !== _window.location.protocol) {
        ZeroClipboard.emit({
          type: "error",
          name: "flash-insecure"
        });
      } else {
        maxWait = _globalConfig.flashLoadTimeout;
        if (typeof maxWait === "number" && maxWait >= 0) {
          _flashCheckTimeout = _setTimeout(function() {
            if (typeof _flashState.deactivated !== "boolean") {
              _flashState.deactivated = true;
            }
            if (_flashState.deactivated === true) {
              ZeroClipboard.emit({
                type: "error",
                name: "flash-deactivated"
              });
            }
          }, maxWait);
        }
        _flashState.overdue = false;
        _embedSwf();
      }
    }
  }
function() {
    var maxWait, swfProtocol, previousState = _flashState.sandboxed;
    if (!_isBrowserSupported()) {
      _flashState.ready = false;
      ZeroClipboard.emit({
        type: "error",
        name: "browser-unsupported"
      });
      return;
    }
    _detectSandbox();
    if (typeof _flashState.ready !== "boolean") {
      _flashState.ready = false;
    }
    if (_flashState.sandboxed !== previousState && _flashState.sandboxed === true) {
      _flashState.ready = false;
      ZeroClipboard.emit({
        type: "error",
        name: "flash-sandboxed"
      });
    } else if (!ZeroClipboard.isFlashUnusable() && _flashState.bridge === null) {
      swfProtocol = _getSwfPathProtocol();
      if (swfProtocol && swfProtocol !== _window.location.protocol) {
        ZeroClipboard.emit({
          type: "error",
          name: "flash-insecure"
        });
      } else {
        maxWait = _globalConfig.flashLoadTimeout;
        if (typeof maxWait === "number" && maxWait >= 0) {
          _flashCheckTimeout = _setTimeout(function() {
            if (typeof _flashState.deactivated !== "boolean") {
              _flashState.deactivated = true;
            }
            if (_flashState.deactivated === true) {
              ZeroClipboard.emit({
                type: "error",
                name: "flash-deactivated"
              });
            }
          }, maxWait);
        }
        _flashState.overdue = false;
        _embedSwf();
      }
    }
  }
function ( ) { var maxWait , swfProtocol , previousState = _flashState . sandboxed ; if ( ! _isBrowserSupported ( ) ) { _flashState . ready = false ; ZeroClipboard . emit ( { type : "error" , name : "browser-unsupported" } ) ; return ; } _detectSandbox ( ) ; if ( typeof _flashState . ready !== "boolean" ) { _flashState . ready = false ; } if ( _flashState . sandboxed !== previousState && _flashState . sandboxed === true ) { _flashState . ready = false ; ZeroClipboard . emit ( { type : "error" , name : "flash-sandboxed" } ) ; } else if ( ! ZeroClipboard . isFlashUnusable ( ) && _flashState . bridge === null ) { swfProtocol = _getSwfPathProtocol ( ) ; if ( swfProtocol && swfProtocol !== _window . location . protocol ) { ZeroClipboard . emit ( { type : "error" , name : "flash-insecure" } ) ; } else { maxWait = _globalConfig . flashLoadTimeout ; if ( typeof maxWait === "number" && maxWait >= 0 ) { _flashCheckTimeout = _setTimeout ( function ( ) { if ( typeof _flashState . deactivated !== "boolean" ) { _flashState . deactivated = true ; } if ( _flashState . deactivated === true ) { ZeroClipboard . emit ( { type : "error" , name : "flash-deactivated" } ) ; } } , maxWait ) ; } _flashState . overdue = false ; _embedSwf ( ) ; } } }
The underlying implementation of `ZeroClipboard.create`.
@private
The underlying implementation of ZeroClipboard . create .