Skip to content

Commit

Permalink
Merge pull request #122 from szul/master
Browse files Browse the repository at this point in the history
Template node attribute changes
  • Loading branch information
szul authored Mar 27, 2018
2 parents f0de7ca + a8bf6ab commit e298446
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metron",
"version": "2.8.2",
"version": "2.8.3",
"description": "A lightweight library and front-end framework utilizing data attributes",
"main": "dist/gen/metron.js",
"authors": [
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metronical.metron",
"version": "2.8.2",
"version": "2.8.3",
"description": "A lightweight library and front-end framework utilizing data attributes",
"main": "dist/gen/metron.js",
"homepage": "https://github.com/metronical/metron",
Expand All @@ -10,7 +10,7 @@
"awesomplete": "^1.1.1",
"milligram": "^1.3.0",
"rsvp": "^3.6.2",
"typescript": "^2.4.2"
"typescript": "^2.8.1"
},
"scripts": {
"postinstall": "tsc -p ."
Expand Down
2 changes: 1 addition & 1 deletion src/metron.templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace metron {
});
}
export function merge(template: string): void {
function _copyAttributes(src: Node, elemName: string) {
function _copyAttributes(src: Element, elemName: string) {
for (let i = 0; i < src.attributes.length; i++) {
document.documentElement.querySelector(elemName).attribute(src.attributes[i].name, src.attributes[i].value);
}
Expand Down

0 comments on commit e298446

Please sign in to comment.