From f8819ee946d80556a5bef5b25f0471a75bb9bd38 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 30 Sep 2016 17:05:40 -0700 Subject: [PATCH] [API] Fix failing specs --- karma.conf.js | 2 ++ src/BundleRegistry.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/karma.conf.js b/karma.conf.js index e682ec6d86..535c27b2a5 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -37,9 +37,11 @@ module.exports = function(config) { {pattern: 'bower_components/**/*.js', included: false}, {pattern: 'src/**/*.js', included: false}, {pattern: 'example/**/*.js', included: false}, + {pattern: 'example/**/*.json', included: false}, {pattern: 'platform/**/*.js', included: false}, {pattern: 'warp/**/*.js', included: false}, {pattern: 'platform/**/*.html', included: false}, + {pattern: 'src/**/*.html', included: false}, 'test-main.js' ], diff --git a/src/BundleRegistry.js b/src/BundleRegistry.js index b06fd4b22b..85df4ef1bf 100644 --- a/src/BundleRegistry.js +++ b/src/BundleRegistry.js @@ -32,6 +32,7 @@ define(function () { throw new Error('Cannot register bundle with duplicate path', path); } this.knownBundles[path] = definition; + this.enable(path); }; BundleRegistry.prototype.enable = function (path) { @@ -45,6 +46,7 @@ define(function () { if (!this.bundles[path]) { throw new Error('Tried to disable inactive bundle ' + path); } + delete this.bundles[path]; }; BundleRegistry.prototype.contains = function (path) {