From c45aa912c71add621c839b2dc8aff48448c1d71f Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Wed, 23 Sep 2015 22:39:06 -0700 Subject: [PATCH] Asking runners if a file is a test file --- package.json | 2 ++ plugins/c9.nodeapi/events.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d156b3cb..2e22cfb0 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,8 @@ "c9.ide.save": "#e00549cb0f", "c9.ide.scm": "#0bccfb982b", "c9.ide.terminal.monitor": "#b76f1c9f24", + "c9.ide.test": "#bf476acc57", + "c9.ide.test.mocha": "#3f96974268", "c9.ide.theme.flat": "#2de8414db7", "c9.ide.threewaymerge": "#229382aa0b", "c9.ide.undo": "#b028bcb4d5", diff --git a/plugins/c9.nodeapi/events.js b/plugins/c9.nodeapi/events.js index 027cace5..ecfbd017 100644 --- a/plugins/c9.nodeapi/events.js +++ b/plugins/c9.nodeapi/events.js @@ -190,7 +190,7 @@ EventEmitter.prototype.on = EventEmitter.prototype.addListener; * ``` */ -EventEmitter.prototype.once = function(type, listener) { +EventEmitter.prototype.once = function(type, listener, plugin) { var self = this; var wrapped = function() { @@ -199,7 +199,7 @@ EventEmitter.prototype.once = function(type, listener) { } wrapped.listener = listener; - self.on(type, wrapped); + self.on(type, wrapped, plugin); return this; };