Skip to content

Commit 0231d61

Browse files
author
Narendra Sisodiya
committed
Fixed template cloning bug
1 parent 09a6667 commit 0231d61

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pitana.js",
33
"repo": "pitana/pitana.js",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"main": "dist/pitana.js",
66
"keywords": [
77
"scalable",

dist/pitana.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
this.$ = data.ele;
219219

220220
if (this.template instanceof HTMLTemplateElement) {
221-
this.$.appendChild(this.template.content.cloneNode(true));
221+
this.$.appendChild(document.importNode(this.template.content, true));
222222
} else {
223223
//Loading Template !!
224224
//TODO -Support for underscore template

dist/pitana.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pitana.HTMLElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
this.$ = data.ele;
88

99
if (this.template instanceof HTMLTemplateElement) {
10-
this.$.appendChild(this.template.content.cloneNode(true));
10+
this.$.appendChild(document.importNode(this.template.content, true));
1111
} else {
1212
//Loading Template !!
1313
//TODO -Support for underscore template

0 commit comments

Comments
 (0)