docs/bower_components/bootstrap/assets/js/jszip.js
function (buffer) {
         JSZip.utils.checkSupport("blob");

         try {
            // Blob constructor
            return new Blob([buffer], { type: "application/zip" });
         }
         catch(e) {}

         try {
            // deprecated, browser only, old way
            var builder = new (window.BlobBuilder || window.WebKitBlobBuilder ||
                               window.MozBlobBuilder || window.MSBlobBuilder)();
            builder.append(buffer);
            return builder.getBlob('application/zip');
         }
         catch(e) {}

         // well, fuck ?!
         throw new Error("Bug : can't construct the Blob.");
      }
function (buffer) {
         JSZip.utils.checkSupport("blob");

         try {
            // Blob constructor
            return new Blob([buffer], { type: "application/zip" });
         }
         catch(e) {}

         try {
            // deprecated, browser only, old way
            var builder = new (window.BlobBuilder || window.WebKitBlobBuilder ||
                               window.MozBlobBuilder || window.MSBlobBuilder)();
            builder.append(buffer);
            return builder.getBlob('application/zip');
         }
         catch(e) {}

         // well, fuck ?!
         throw new Error("Bug : can't construct the Blob.");
      }
function ( buffer ) { JSZip . utils . checkSupport ( "blob" ) ; try { // Blob constructor return new Blob ( [ buffer ] , { type : "application/zip" } ) ; } catch ( e ) { } try { // deprecated, browser only, old way var builder = new ( window . BlobBuilder || window . WebKitBlobBuilder || window . MozBlobBuilder || window . MSBlobBuilder ) ( ) ; builder . append ( buffer ) ; return builder . getBlob ( 'application/zip' ) ; } catch ( e ) { } // well, fuck ?! throw new Error ( "Bug : can't construct the Blob." ) ; }
Create a blob from the given ArrayBuffer.
@param {ArrayBuffer} buffer the buffer to transform.
@return {Blob} the result.
@throws {Error} an Error if the browser doesn't support the requested feature.
Create a blob from the given ArrayBuffer .