/**
 * Extends dojo/has with a few additional tests.
 */

define([ 'dojo/has' ],
       function( has ) {

           // does the browser support typed arrays?
           has.add( 'typed-arrays', function() {
                        try {
                            var a = new Uint8Array(1);
                            return !!a;
                        } catch(e) {};
                        return false;
                    });

           // does it support canvas?
           has.add( 'canvas', function() {
                        try {
                            return !! document.createElement('canvas');
                        } catch(e) {}
                        return false;
                    });

           // some browsers don't do a very good job with
           // percentage-based and fractional-pixel HTML coordinates
           // and sizes
           has.add( 'inaccurate-html-layout', function() {
               return has('safari') || has('ie') < 9;
           }, true );


           has.add( 'save-generated-files', function() {
               return Blob && !( has('ie') < 10 );
           },true);

           return has;
       }
);
@@ -1077,42 +1077,211 @@
     
-return Blob && !( has('ie') %3C 10 )
+         var canSave = false;%0A                        try %7B%0A                            canSave = Blob && !( has('ie') %3C 10 );%0A                        %7D catch(e) %7B%7D%0A                        return canSave
 ;%0A  

fix JBrowse/has("save-generated-files") test crash on IE9