Adaptors and Drivers derive from Basestar
This commit is contained in:
parent
8f40826a34
commit
4a058742c4
|
@ -9,12 +9,16 @@
|
|||
|
||||
(function() {
|
||||
'use strict';
|
||||
var namespace;
|
||||
var namespace,
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
namespace = require('node-namespace');
|
||||
|
||||
namespace('Cylon.Adaptors', function() {
|
||||
return this.Adaptor = (function() {
|
||||
return this.Adaptor = (function(_super) {
|
||||
__extends(Adaptor, _super);
|
||||
|
||||
function Adaptor(opts) {
|
||||
this.self = this;
|
||||
this.name = opts.name;
|
||||
|
@ -37,7 +41,7 @@
|
|||
|
||||
return Adaptor;
|
||||
|
||||
})();
|
||||
})(Cylon.Basestar);
|
||||
});
|
||||
|
||||
module.exports = Cylon.Adaptors.Adaptor;
|
||||
|
|
|
@ -9,12 +9,16 @@
|
|||
|
||||
(function() {
|
||||
'use strict';
|
||||
var namespace;
|
||||
var namespace,
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
namespace = require('node-namespace');
|
||||
|
||||
namespace('Cylon.Drivers', function() {
|
||||
return this.Driver = (function() {
|
||||
return this.Driver = (function(_super) {
|
||||
__extends(Driver, _super);
|
||||
|
||||
function Driver(opts) {
|
||||
this.self = this;
|
||||
this.name = opts.name;
|
||||
|
@ -35,7 +39,7 @@
|
|||
|
||||
return Driver;
|
||||
|
||||
})();
|
||||
})(Cylon.Basestar);
|
||||
});
|
||||
|
||||
module.exports = Cylon.Drivers.Driver;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace = require 'node-namespace'
|
||||
|
||||
namespace 'Cylon.Adaptors', ->
|
||||
class @Adaptor
|
||||
class @Adaptor extends Cylon.Basestar
|
||||
constructor: (opts) ->
|
||||
@self = this
|
||||
@name = opts.name
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
namespace = require 'node-namespace'
|
||||
|
||||
namespace 'Cylon.Drivers', ->
|
||||
class @Driver
|
||||
class @Driver extends Cylon.Basestar
|
||||
constructor: (opts) ->
|
||||
@self = this
|
||||
@name = opts.name
|
||||
|
|
Loading…
Reference in New Issue