Comparing version 0.1.6 to 0.1.7
@@ -82,4 +82,4 @@ "use strict"; | ||
//#Create declarators for this module | ||
let registerInTree = function (constructor) { | ||
lincd._modules[moduleName][constructor.name] = constructor; | ||
let registerInTree = function (object) { | ||
lincd._modules[moduleName][object.name] = object; | ||
}; | ||
@@ -97,2 +97,5 @@ //create a declarator function which Components of this module can use register themselves and add themselves to the global tree | ||
// }; | ||
let registerModuleExport = function (exportName, exportedObject) { | ||
lincd._modules[moduleName][exportName] = exportedObject; | ||
}; | ||
//create a declarator function which Components of this module can use register themselves and add themselves to the global tree | ||
@@ -139,3 +142,3 @@ let linkedUtil = function (constructor) { | ||
//return the declarators so the module can use them | ||
return { linkedComponent, linkedShape, linkedUtil }; | ||
return { linkedComponent, linkedShape, linkedUtil, registerModuleExport }; | ||
} | ||
@@ -142,0 +145,0 @@ exports.linkedModule = linkedModule; |
{ | ||
"name": "lincd", | ||
"license": "MPL-2.0", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Linked Interoperable Code & Data - A javascript library for interoperability & collaboration based on W3C's Linked Data standards", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
866470
8296