[API] Repair type registration

Fixes #1294
This commit is contained in:
Victor Woeltjen
2016-10-27 12:10:45 -07:00
parent 365af918f3
commit 30b769d741
3 changed files with 51 additions and 0 deletions

View File

@ -248,6 +248,13 @@ define([
}.bind(this)
});
this.types.listKeys().forEach(function (typeKey) {
var type = this.types.get(typeKey);
var legacyDefinition = type.toLegacyDefinition();
legacyDefinition.key = typeKey;
this.legacyExtension('types', legacyDefinition);
}.bind(this));
legacyRegistry.register('adapter', this.legacyBundle);
legacyRegistry.enable('adapter');
/**