Plato on Github
Report Home
node_modules/wire/lib/WireContext.js
Maintainability
77.37
Lines of code
27
Difficulty
12.11
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
/** @license MIT License (c) copyright B Cavalier & J Hann */ /** * Licensed under the MIT License at: * http://www.opensource.org/licenses/mit-license.php */ (function(define){ 'use strict'; define(function(require) { var object, undef; object = require('./object'); function WireContext() {} WireContext.inherit = function(parent, api) { var contextApi, context; contextApi = object.inherit(parent); object.mixin(contextApi, api); WireContext.prototype = contextApi; context = new WireContext(); WireContext.prototype = undef; return context; }; return WireContext; }); }(typeof define === 'function' ? define : function(factory) { module.exports = factory(require); }));