Refactor adaptor & driver to pure JS style
This commit is contained in:
parent
74efee0809
commit
8b88e5dc10
|
@ -2,24 +2,18 @@
|
||||||
* adaptor
|
* adaptor
|
||||||
* cylonjs.com
|
* cylonjs.com
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013 The Hybrid Group
|
* Copyright (c) 2013-2014 The Hybrid Group
|
||||||
* Licensed under the Apache 2.0 license.
|
* Licensed under the Apache 2.0 license.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
(function() {
|
require('./basestar');
|
||||||
'use strict';
|
var namespace = require('node-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", function() {
|
||||||
|
this.Adaptor = (function(klass) {
|
||||||
require('./basestar');
|
subclass(Adaptor, klass);
|
||||||
|
|
||||||
namespace('Cylon', function() {
|
|
||||||
return this.Adaptor = (function(_super) {
|
|
||||||
__extends(Adaptor, _super);
|
|
||||||
|
|
||||||
function Adaptor(opts) {
|
function Adaptor(opts) {
|
||||||
if (opts == null) {
|
if (opts == null) {
|
||||||
|
@ -48,6 +42,4 @@
|
||||||
return Adaptor;
|
return Adaptor;
|
||||||
|
|
||||||
})(Cylon.Basestar);
|
})(Cylon.Basestar);
|
||||||
});
|
});
|
||||||
|
|
||||||
}).call(this);
|
|
||||||
|
|
|
@ -2,24 +2,18 @@
|
||||||
* driver
|
* driver
|
||||||
* cylonjs.com
|
* cylonjs.com
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013 The Hybrid Group
|
* Copyright (c) 2013-2014 The Hybrid Group
|
||||||
* Licensed under the Apache 2.0 license.
|
* Licensed under the Apache 2.0 license.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
(function() {
|
require('./basestar');
|
||||||
'use strict';
|
var namespace = require('node-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", function() {
|
||||||
|
this.Driver = (function(klass) {
|
||||||
require('./basestar');
|
subclass(Driver, klass);
|
||||||
|
|
||||||
namespace('Cylon', function() {
|
|
||||||
return this.Driver = (function(_super) {
|
|
||||||
__extends(Driver, _super);
|
|
||||||
|
|
||||||
function Driver(opts) {
|
function Driver(opts) {
|
||||||
if (opts == null) {
|
if (opts == null) {
|
||||||
|
@ -50,6 +44,4 @@
|
||||||
return Driver;
|
return Driver;
|
||||||
|
|
||||||
})(Cylon.Basestar);
|
})(Cylon.Basestar);
|
||||||
});
|
});
|
||||||
|
|
||||||
}).call(this);
|
|
||||||
|
|
Loading…
Reference in New Issue