Minor cleanups in basestar.js
This commit is contained in:
parent
2083af414b
commit
3a46ff7848
|
@ -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 } }
|
||||
|
||||
|
|
Loading…
Reference in New Issue