Temporary fix so that NeDB works on IE

pull/2/head
Louis Chatriot 12 years ago
parent 3519855995
commit 51053738da
  1. 5
      browser-version/out/nedb.js
  2. 2
      browser-version/out/nedb.min.js

@ -2253,7 +2253,10 @@ module.exports = Persistence;
else { else {
async.nextTick = process.nextTick; async.nextTick = process.nextTick;
if (typeof setImmediate !== 'undefined') { if (typeof setImmediate !== 'undefined') {
async.setImmediate = setImmediate; async.setImmediate = function (fn) {
// not a direct alias for IE10 compatibility
setImmediate(fn);
};
} }
else { else {
async.setImmediate = async.nextTick; async.setImmediate = async.nextTick;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save