Adaptors and Drivers derive from Basestar

This commit is contained in:
deadprogram 2013-12-14 12:18:36 -08:00
parent 8f40826a34
commit 4a058742c4
4 changed files with 16 additions and 8 deletions

10
dist/adaptor.js vendored
View File

@ -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;

10
dist/driver.js vendored
View File

@ -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;

View File

@ -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

View File

@ -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