src: fix jslint errors
PR-URL: https://github.com/iojs/io.js/pull/449 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
946eabd18f
commit
fd30eb2152
@ -1269,11 +1269,11 @@ Interface.prototype.unwatch = function(expr) {
|
|||||||
|
|
||||||
// List watchers
|
// List watchers
|
||||||
Interface.prototype.watchers = function() {
|
Interface.prototype.watchers = function() {
|
||||||
var self = this,
|
var self = this;
|
||||||
verbose = arguments[0] || false,
|
var verbose = arguments[0] || false;
|
||||||
callback = arguments[1] || function() {},
|
var callback = arguments[1] || function() {};
|
||||||
waiting = this._watchers.length,
|
var waiting = this._watchers.length;
|
||||||
values = [];
|
var values = [];
|
||||||
|
|
||||||
this.pause();
|
this.pause();
|
||||||
|
|
||||||
|
@ -500,7 +500,7 @@ ClientRequest.prototype._deferToConnect = function(method, arguments_, cb) {
|
|||||||
if (cb) { cb(); }
|
if (cb) { cb(); }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
if (!self.socket) {
|
if (!self.socket) {
|
||||||
self.once('socket', onSocket);
|
self.once('socket', onSocket);
|
||||||
} else {
|
} else {
|
||||||
|
@ -398,7 +398,7 @@ function ArrayStream() {
|
|||||||
data.forEach(function(line) {
|
data.forEach(function(line) {
|
||||||
self.emit('data', line + '\n');
|
self.emit('data', line + '\n');
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
util.inherits(ArrayStream, Stream);
|
util.inherits(ArrayStream, Stream);
|
||||||
ArrayStream.prototype.readable = true;
|
ArrayStream.prototype.readable = true;
|
||||||
|
@ -193,7 +193,7 @@ exports.setTimeout = function(callback, after) {
|
|||||||
var args = Array.prototype.slice.call(arguments, 2);
|
var args = Array.prototype.slice.call(arguments, 2);
|
||||||
timer._onTimeout = function() {
|
timer._onTimeout = function() {
|
||||||
callback.apply(timer, args);
|
callback.apply(timer, args);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.domain) timer.domain = process.domain;
|
if (process.domain) timer.domain = process.domain;
|
||||||
|
@ -773,15 +773,15 @@
|
|||||||
|
|
||||||
NativeModule.getCached = function(id) {
|
NativeModule.getCached = function(id) {
|
||||||
return NativeModule._cache[id];
|
return NativeModule._cache[id];
|
||||||
}
|
};
|
||||||
|
|
||||||
NativeModule.exists = function(id) {
|
NativeModule.exists = function(id) {
|
||||||
return NativeModule._source.hasOwnProperty(id);
|
return NativeModule._source.hasOwnProperty(id);
|
||||||
}
|
};
|
||||||
|
|
||||||
NativeModule.getSource = function(id) {
|
NativeModule.getSource = function(id) {
|
||||||
return NativeModule._source[id];
|
return NativeModule._source[id];
|
||||||
}
|
};
|
||||||
|
|
||||||
NativeModule.wrap = function(script) {
|
NativeModule.wrap = function(script) {
|
||||||
return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
|
return NativeModule.wrapper[0] + script + NativeModule.wrapper[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user