Skip to content

Commit 8c18830

Browse files
committed
added: exports.id instead of exports.name
1 parent 0894f9b commit 8c18830

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

changes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Framework supports: one file only (all libraries in one JS file)
4747
- added: config['default-errorbuilder-resource-prefix']
4848
- added: config['allow-handle-static-files']
4949
- added: .md (markdown) into static-accepts
50+
- added: (modules, models, sources and controllers) exports.id instead of export.name
5051

5152
- updated: (IMPORTANT) all models are loaded after is the framework loaded
5253
- updated: Utils.request(), timeout is possible to add as cookie, headers or encoding

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,9 @@ Framework.prototype.install = function(type, name, declaration, options, callbac
15221522
return self;
15231523
}
15241524

1525-
if (typeof(obj.name) === STRING)
1525+
if (!name && typeof(obj.id) === STRING)
1526+
name = obj.id;
1527+
else if (!name && typeof(obj.name) === STRING)
15261528
name = obj.name;
15271529

15281530
key = type + '.' + name;

minify/merged/total.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

minify/total.js/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)