2014-02-27 22:44:53 +08:00
|
|
|
/*
|
2015-04-15 09:16:03 +08:00
|
|
|
* Cylon.js - Loopback adaptor
|
2014-02-27 22:44:53 +08:00
|
|
|
* cylonjs.com
|
|
|
|
*
|
2015-01-08 04:58:50 +08:00
|
|
|
* Copyright (c) 2013-2015 The Hybrid Group
|
2014-02-27 22:44:53 +08:00
|
|
|
* Licensed under the Apache 2.0 license.
|
|
|
|
*/
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
var Adaptor = require("../adaptor"),
|
|
|
|
Utils = require("../utils");
|
2014-05-07 09:18:20 +08:00
|
|
|
|
2014-05-07 09:56:13 +08:00
|
|
|
var Loopback;
|
2014-02-27 22:44:53 +08:00
|
|
|
|
2014-05-07 09:56:13 +08:00
|
|
|
module.exports = Loopback = function Loopback() {
|
|
|
|
Loopback.__super__.constructor.apply(this, arguments);
|
|
|
|
};
|
2014-02-27 22:44:53 +08:00
|
|
|
|
2014-06-06 03:11:37 +08:00
|
|
|
Utils.subclass(Loopback, Adaptor);
|
2014-02-27 22:44:53 +08:00
|
|
|
|
2014-09-09 00:31:16 +08:00
|
|
|
Loopback.prototype.connect = function(callback) {
|
|
|
|
callback();
|
|
|
|
};
|
|
|
|
|
2014-10-01 03:15:46 +08:00
|
|
|
Loopback.prototype.disconnect = function(callback) {
|
|
|
|
callback();
|
|
|
|
};
|
|
|
|
|
2014-12-16 03:15:29 +08:00
|
|
|
Loopback.adaptors = ["loopback"];
|
2014-05-07 09:56:13 +08:00
|
|
|
Loopback.adaptor = function(opts) { return new Loopback(opts); };
|