]> git.parisson.com Git - pdf.js.git/commitdiff
- Feature detection for setProperty feature detection should not return value
authorTim de Koning <github@kingsquare.nl>
Thu, 28 Jun 2012 07:14:51 +0000 (09:14 +0200)
committerTim de Koning <github@kingsquare.nl>
Thu, 28 Jun 2012 07:14:51 +0000 (09:14 +0200)
- Minor comment update

1  2 
web/compatibility.js

index 825dce647a80ae795ee3c5f6c586e7a7812a5a4b,56a0ba43acc08f9a7e932eca4fe557fbcba84990..4b7119c63cc18f94dfd216bd34331ed505340201
      if (typeof Uint8Array.prototype.subarray === 'undefined') {
          Uint8Array.prototype.subarray = function subarray(start, end) {
            return new Uint8Array(this.slice(start, end));
 -        }
 +        };
          Float32Array.prototype.subarray = function subarray(start, end) {
--            return new Float32Array(this.slice(start, end));
 -        }
++          return new Float32Array(this.slice(start, end));
 +        };
      }
  
      // some mobile version might not support Float64Array