[API] Load bundles from imperative registry

This commit is contained in:
Victor Woeltjen
2016-01-06 11:22:44 -08:00
parent 65fb5ab2a5
commit a39e8e44f0
4 changed files with 28 additions and 8 deletions

View File

@@ -22,6 +22,8 @@
/*global define*/
define(function () {
'use strict';
function BundleRegistry() {
this.bundles = {};
}
@@ -38,5 +40,9 @@ define(function () {
return this.bundles[path];
};
BundleRegistry.prototype.list = function () {
return Object.keys(this.bundles);
};
return BundleRegistry;
});