Skip to content

Commit

Permalink
Merge pull request #3 from gazal-k/master
Browse files Browse the repository at this point in the history
Allow routes to insert new custom element without import
  • Loading branch information
adalinesimonian committed Aug 16, 2015
2 parents 7ff1000 + a5c0b1a commit 7026f59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plastik-lazy-route-selector",
"version": "0.0.2",
"version": "0.0.3",
"authors": [
"The Plastikit Project Authors <[email protected]>"
],
Expand Down
4 changes: 4 additions & 0 deletions plastik-lazy-route-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@
}
var uri = selectedItem.import || selectedItem.getAttribute('import');
if (!uri || typeof uri !== 'string') {
if(selectedItem.getAttribute('element')) {
// custom element without import
this._placeImport(selectedItem, document.createElement(selectedItem.getAttribute('element')), route, uri);
}
return;
}
this._import(selectedItem, route, uri);
Expand Down

0 comments on commit 7026f59

Please sign in to comment.