JSFiddle - React, Tailwind, and code Playground
by Chase Wilson
JavaScript
var OCPModuleInterface = new Interface({
namespace: String
});
OCPModule = new Type('OCPModule', function (params){
params.Interface = OCPModuleInterface;
return new Class(params);
});
//var OCPModule = new Module({});
var Mod = new OCPModule({
// comment this line to watch it not work
Interface: OCPModuleInterface,
namespace: {},
initialize: function(){
}
});
var theMod = new Mod();
console.dir(theMod);