Browse Source

Merge pull request #3334 from benbro/master

Fix check for instanceof Uint8Array in IE9
Yury Delendik 12 years ago
parent
commit
8e1db0bb7c
  1. 2
      src/colorspace.js

2
src/colorspace.js

@ -393,7 +393,7 @@ var IndexedCS = (function IndexedCSClosure() {
lookupArray = new Uint8Array(length); lookupArray = new Uint8Array(length);
for (var i = 0; i < length; ++i) for (var i = 0; i < length; ++i)
lookupArray[i] = lookup.charCodeAt(i); lookupArray[i] = lookup.charCodeAt(i);
} else if (lookup instanceof Uint8Array) { } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
lookupArray = lookup; lookupArray = lookup;
} else { } else {
error('Unrecognized lookup table: ' + lookup); error('Unrecognized lookup table: ' + lookup);

Loading…
Cancel
Save