Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[api] Expose bindings to libev through `carapace.evref` so that it ca…

…n be consumed by `haibu-carapace` plugins
  • Loading branch information...
commit f0b5d474c5914e6db5690f318f3baa80a28d5ab8 1 parent 6cc5fc2
@indexzero indexzero authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/carapace.js
View
11 lib/carapace.js
@@ -10,11 +10,15 @@ var fs = require('fs'),
net = require('net'),
path = require('path');
events = require('eventemitter2'),
- hookio = require('hook.io'),
- evref = require('../build/default/evref');
+ hookio = require('hook.io');
var carapace = module.exports = new hookio.Hook(),
_listen = carapace.listen;
+
+//
+// Expose `evref` so that it can be used by `haibu-carapace` plugins
+//
+var evref = carapace.evref = require('../build/default/evref');
//
// Expose the `cli` module for default options
@@ -251,5 +255,4 @@ carapace.load = function (script) {
//
fs.readdirSync(path.join(__dirname, 'plugins')).forEach(function (name) {
carapace.load(path.join(__dirname, 'plugins', name));
-});
-
+});
Please sign in to comment.
Something went wrong with that request. Please try again.