Permalink
Browse files

perf(view-engine): simplify entry url acquisition

  • Loading branch information...
EisenbergEffect committed Aug 20, 2017
1 parent c4de2a2 commit f57cff98ee7ce0d06064d73de7601f7af8aaf3d1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/view-engine.js
View
@@ -102,7 +102,8 @@ export class ViewEngine {
loadContext = loadContext || new ResourceLoadContext();
return ensureRegistryEntry(this.loader, urlOrRegistryEntry).then(registryEntry => {
const url = typeof urlOrRegistryEntry === 'string' ? urlOrRegistryEntry : urlOrRegistryEntry.address;
const url = registryEntry.address;
if (registryEntry.onReady) {
if (!loadContext.hasDependency(url)) {
loadContext.addDependency(url);

0 comments on commit f57cff9

Please sign in to comment.