Fixed IE9 compatibility (but control panel bugs with IE9 remain)

This commit is contained in:
Jeff Parsons 2015-02-03 16:27:26 -08:00 committed by jeffpar
commit 6bbec414bd
8 changed files with 2660 additions and 2398 deletions

View file

@ -64,11 +64,11 @@ if (typeof module !== 'undefined') {
* @property {function(number,number,boolean)} setInt32
*/
var littleEndian = (function() {
var littleEndian = (TYPEDARRAYS? (function() {
var buffer = new ArrayBuffer(2);
new DataView(buffer).setUint16(0, 256, true);
return new Uint16Array(buffer)[0] === 256;
})();
})() : false);
/**
* Memory(addr, size, type, controller)