Fix support for browsers

Use `process.nextTick` instead of `setImmediate`, as the latter is
not a standard API.

https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate
This commit is contained in:
Miroslav Bajtoš 2014-10-10 10:29:23 +02:00
parent caebbf47ff
commit 61a4dd939f
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ RemoteConnector.initialize = function(dataSource, callback) {
var connector = dataSource.connector =
new RemoteConnector(dataSource.settings);
connector.connect();
setImmediate(callback);
process.nextTick(callback);
};
RemoteConnector.prototype.define = function(definition) {