Merge pull request #3334 from benbro/master

Fix check for instanceof Uint8Array in IE9
This commit is contained in:
Yury Delendik 2013-06-04 17:43:20 -07:00
commit 8e1db0bb7c

View File

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