Skip to content

Commit

Permalink
fix(view-engine): remove module elements from templates
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 21, 2015
1 parent 8a9b606 commit 149e8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/view-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export class ViewEngine {

importIds[i] = src;
names[i] = current.getAttribute('as');

if(current.parentNode){
current.parentNode.removeChild(current);
}
}

importIds = importIds.map(x => relativeToFile(x, templateUrl));
Expand Down

0 comments on commit 149e8a8

Please sign in to comment.