From 3a46ff78486d11a33ec5859bb664f3c9223cd806 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 27 Feb 2014 21:35:12 -0800 Subject: [PATCH] Minor cleanups in basestar.js --- lib/basestar.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/basestar.js b/lib/basestar.js index 481e6a4..6a9f5fd 100644 --- a/lib/basestar.js +++ b/lib/basestar.js @@ -34,9 +34,7 @@ namespace("Cylon", function() { // // Returns the klass where the methods have been proxied Basestar.prototype.proxyMethods = function(methods, target, source, force) { - if (force == null) { - force = false; - } + if (force == null) { force = false; } return proxyFunctionsToObject(methods, target, source, force); }; @@ -66,7 +64,9 @@ namespace("Cylon", function() { args.unshift('update'); opts.target.emit.apply(opts.target, args); } - }) + }); + + return opts.source; }; // Public: Creates an event handler that proxies events from an adaptor's @@ -75,7 +75,7 @@ namespace("Cylon", function() { // // opts - hash of opts to be passed to defineEvent() // - // Returns @connector + // Returns this.connector Basestar.prototype.defineAdaptorEvent = function(opts) { if (typeof opts === 'string') { opts = { eventName: opts } } @@ -91,7 +91,7 @@ namespace("Cylon", function() { // // opts - hash of opts to be passed to defineEvent() // - // Returns @connection + // Returns this.connection Basestar.prototype.defineDriverEvent = function(opts) { if (typeof opts === 'string') { opts = { eventName: opts } }