Skip to content

Commit 0e77548

Browse files
committed
Updated list to remove template
1 parent 6229cb7 commit 0e77548

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ export default class List extends View {
4242
throw new Error(`Invalid List template with name ${classTemplate}`);
4343
}
4444

45-
// Hide the template
46-
template.classList.add('d-none');
47-
4845
// Create a prototype row
4946
this.$prototype = template.cloneNode(true);
5047
this.$prototype.classList.remove(this.$className);
48+
49+
// Remove node from parent
50+
node.removeChild(template);
5151
}
5252

5353
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@djthorpe/js-framework",
3-
"version": "0.0.38",
3+
"version": "0.0.39",
44
"description": "Javascript Framework",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)